Multilingual page url overwrite

34 views
Skip to first unread message

Michael Petry

unread,
Mar 23, 2020, 11:53:14 AM3/23/20
to dotCMS User Group

Hello there,


I am having an issue in dotCMS where the url of a multilingual page that I have created is being overwritten with the last language's url I publish.


The first page I created was in English, so I filled out details such as title, url, friendly name, etc and then moved on to create its French equivalent with the same details but in French (screenshot 1).


When I toggled between the pages to make sure everything looked good I noticed that the url for the English page was now what I had assigned to the French page (screenshot 2).


What I was hoping I would be able to do is to create a page and have different URL's for each language, for instance:


www.mydomain.com/test-page-english

www.mydomain.com/page-de-teste-en-fracais


Does anyone know what might be causing this to happen?


Thanks,


Mike.

multi-1.PNG
multi-2.PNG
multi-3.PNG

Falzone, Chris

unread,
Mar 23, 2020, 2:25:36 PM3/23/20
to dot...@googlegroups.com
You can't have different urls if using just a static page (AFAIK).  Only if you use content with a URL Map and a detail page.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/d7209b4f-cba9-4efc-a277-32b10e9195e9%40googlegroups.com.


--


Christopher Falzone / Web Developer
https://aquent.com

[ AQUENT ]


Michael Petry

unread,
Mar 23, 2020, 9:56:54 PM3/23/20
to dotCMS User Group
Hi Chris,

Thank you very much for your reply. 

So if I wanted to create a simple static about us page in two languages, there is no way I can have /about-us and /a-propos-de-nous as the URL for each language?

Would the only option then be to use language queries like about-us?language_id=2 and then use a vanity url if I wanted the french page to read something different?

Thanks once again,

Michael.

Xander Steinmann

unread,
Mar 24, 2020, 3:27:59 AM3/24/20
to dotCMS User Group
Hi Michael,

You need to decide how you want to set up your multilingual site. You can:
  1. Have the same URLs in all languages: easier to switch language and find a page but you kind of require a page to be available in all languages (or default to a single language)
  2. Have different URLs in languages: You get more pages (duplication) but become more flexible in which pages you want per language. It's a bit harder to change language unless you want to switch to the homepage
Both options have their pros and cons. We tend to go for option 2, for instance with /en and /fr folders and use vanity URLs to make sure the correct language is set.

Kind regards,

Xander
Reply all
Reply to author
Forward
0 new messages