Jump to content

[SOLVED] CMS page link: removing the ID from link breaks the link.


Recommended Posts

Hello,

I have added a CMS link to the footer.tpl with the following code:

<a href="{$link->getCMSLink('6','customer-service')|replace:'/6':''}" class="homeinfolink">{6 s='Customer Service'}</a>

The link shows as http://MYWEBSITE/6/customer-service.php

I've tried and remove the page ID from the link with the following code (so that it just shows http://MYWEBSITE/customer-service.php) but the link now is broken.

<a href="{$link->getCMSLink('6','customer-service')|replace:'/6':''}" class="homeinfolink">{6 s='Customer Service'}</a>

Does anyone know what's wrong?

Thanks,
Alex

Link to comment
Share on other sites

nice, i think that this is the best solution (no core changes, only little .htaccess entries)

 

im going to mark this thread as [solved]

if you will have any questions related to this case - feel free to continue discussion here

 

best regards

Link to comment
Share on other sites

  • 3 months later...
×
×
  • Create New...