How to use translated slugs/URLs on a multi-language site? #3801
Unanswered
nitram2342
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a site that uses two languages. Many pages are translated and are available in both languages. There is also a blog, where some pages are translated. Using a slug meta data entry seems to be the way to specify the URL of a page. It is also helpful for linking, because one can use the
link://slug/titlescheme to avoid hardcoding paths.With multiple translations of pages, I can't use the
link://slug/titlescheme in combination with alink://slug/translated-title, because it results in a lookup error in functionslug_path(). For my purpose I added a translated-slug meta data entry, which works as expected, but I am not sure if this is a good idea or breaks things at other ends. Is this fine or is there a better - ideally integrated - solution?Beta Was this translation helpful? Give feedback.
All reactions