1

I'm trying to insert a link to the My Account page into a static block. I'm using the following format:

<a href="{{store url="customer/account"}}">My account</a>

While in previous versions of Magento this works fine, as of 1.9.2.2 this doesn't work anymore.

After checking the release notes I have added the static block ('cms/block') in System > Permissions > Blocks. I have also added every combination of 'store', 'url' and 'store/url' in System > Permissions > Blocks.

I have searched extensively to try and find a solution, but I'm probably using the wrong keywords (luckily the 'store' keyword isn't very common in combination with 'Magento'...). What do I have to do to make links work in static blocks in Magento 1.9.2.2?

closed as off-topic by Marius Dec 14 '15 at 9:18

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Marius
If this question can be reworded to fit the rules in the help center, please edit the question.

  • <a href="{{store url='customer/account'}}">My account</a> try that.. – Qaisar Satti Dec 10 '15 at 7:53
0

try like that sometime "" create problem

<a href="{{store url='customer/account'}}">My account</a>
  • I forgot to add that I already tried using single quotes/double quotes in every possible combination. This also doesn't work. – Mike Laurense Dec 10 '15 at 7:56
0

The problem turned out to be a ->getContent() instead of ->toHtml(), which doesn't replace any variables.

Not the answer you're looking for? Browse other questions tagged or ask your own question.