Jump to content

Hardcoded url & multilanguage links


Recommended Posts

Hope this helps someone:

If you you have a "standalone" hard-coded link in your template e.g to a site map page, this code will allow the url to work alongside multi-language url support:

<a href="<?php $sitemap = $pages->get("/site-map/"); echo $sitemap->url; ?>"><?php echo __('Site Map'); ?></a>
Edited by LostKobrakai
Added codeblock
Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...