wagtail / wagtailtrans

A Wagtail add-on for supporting multilingual sites
http://wagtailtrans.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
104 stars 60 forks source link

Languages in a Draft State Result in Failed Routing From Browser Language #179

Closed marykatefain closed 4 years ago

marykatefain commented 4 years ago

Not sure if this is a bug in Wagtail trans, or if we are doing something wrong with our configuration:

Issue summary

When a user visits the site with their browser set to a language that is in Draft state, the site fails to route to the user to the default language. Instead, it tries (and fails) to load the Draft language version, resulting in 404 error. This is particularly a problem because the translators need to have the translated pages in Draft state while they work on the translations.

Steps to replicate:

Other Note

This only happens when the "Live" checkbox on the language setting is selected. If you uncheck "live", it does successfully reroute to default language site. However, this is not a solution to this problem because when "Live" is unchecked, pages do not give you the option to "translate into" that language - which is needed to create a Draft translated page for translators to work on.

It's possible that rather than fix the routing as is (with "live"), the solution is actually to uncheck "live" and then fix the "translate into" menu options so that admins can create translated pages of non-Live languages.

Technical details