Open andre-fuchs opened 3 years ago
@andre-fuchs did you set WAGTAIL_I18N_ENABLED
to True
in your settings?
Looks related to #256
@andre-fuchs I tried replicating this on a more recent version of Wagtail and could not reproduce this. Do (or did) you have WAGTAIL_I18N_ENABLED = True
in your settings?
Following your instructions for wagtail-localize and Wagtail Internationalisation I get a fresh install of Wagtail up and running. After setting the second locale via the UI (just following your example with English as default and French), the "home" page is duplicated as expected. So I translate and publish the french version.
After that I added a basic language switcher to the base template, like described in the Wagtail docs. Neither the
pageurl
template tag, norpage.url
property return the correct URL. On the default locale ('en' in my case) bothpageurl
andpage.url
returnNone
. On the alternative locale ('fr') both return the french/current URL /fr/.Via
page.url_path
I am able to get the path representing the page tree, e.g. /home/. This way I can figure a workaround solution by substituting the top level slug with the locale. But I reckon that this problem is a bug. Or what am I missing?