New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Link to Translated Slugs

Riley Siemens January 28, 2021 by Riley Siemens

Sorry if this has been answered before, but I couldn't it in the docs or on the forums.

I have a multi-language site, and I would like to use translatable slugs if possible. The problem I'm having is if I use a link tag e.g. <a href="{{ link to='contact' }}">Contact Us</a> this works as long as the slug is "contact" for all languages/sites.

Is there a way I can use link tags to navigate to the appropriate language page i.e. if you are on the English site {{ link to='contact' }} goes to and if you are on the Spanish site {{ link to='contact' }} goes to By default it will go to on the Spanish site.

>>>>>>> Unanswered <<<<<<<
2 Replies