Jean-Baptiste Posted May 17, 2018 Share Posted May 17, 2018 Hello, I would like to create a CMS page and add a button to send the clients to their address page (/adresse) Is there a way/function to obtain the url of this page without manually write it (=https://mysite.com/en/adresse) ? Because this url will change depending on the language used. Thanks Link to comment Share on other sites More sharing options...
Rhobur Posted May 19, 2018 Share Posted May 19, 2018 (edited) Add this, {$link->getPageLink('address', true)|escape:'html':'UTF-8'} into your href attribute (assuming you're using 1.6+) or, {$urls.pages.addresses} for 1.7+. Edited May 19, 2018 by Rho_Bur (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now