You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having WAGTAILTRANS_SYNC_TREE = true when I create an English page, it automatically creates the Spanish version.
The problem is that the Slug of the generated Spanish pages contains -es at the end. I would end up having pages like mysite.com/es/page-es/subpage-es. I know that I can edit manually the Slug of the page to remove the language code. But it would be great to have an easy way to remove the language code in the slug by default, specially if you need to create a lot of new pages of different types.
Maybe using a settings variable and do some validations here:
Found a bug, please fill out the sections below
Issue summary
When you create a translated page, it always add the locale code to the slug. Is there a way to remove the locale code by default?
I'll explain my use case. I have something like this:
Having
WAGTAILTRANS_SYNC_TREE = true
when I create an English page, it automatically creates the Spanish version.The problem is that the Slug of the generated Spanish pages contains
-es
at the end. I would end up having pages likemysite.com/es/page-es/subpage-es
. I know that I can edit manually the Slug of the page to remove the language code. But it would be great to have an easy way to remove the language code in the slug by default, specially if you need to create a lot of new pages of different types.Maybe using a settings variable and do some validations here:
wagtailtrans/src/wagtailtrans/models.py
Line 278 in 4c43f9d
How to reproduce?
Following https://www.accordbox.com/blog/how-support-multi-language-wagtail-cms/
Technical details
Python 3.8
Django==3.0.9
wagtail==2.10
wagtailtrans==2.1
The text was updated successfully, but these errors were encountered: