I have added several links in my layout.xml like this:

<action method="addLink" translate="label title">

These links will include a trailing slash while my sitemap will include them without the trailing slash. Since all other links in my store have no trailing slash, I am wondering, why links added via addLink will do. Is there a way to remove these trailing slashes? I tried modifying Mage\Core\Block\Abstract.php and Mage\Core\Method\Url.php to remove trailing slashes from all URLs but some ajaxFunctions will not work anymore if I do so, so I am looking for a way to only remove them from the addLink function.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.