Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to not append language code to slug for syncronized trees #178

Open
gannebamm opened this issue Jun 17, 2020 · 0 comments
Open

option to not append language code to slug for syncronized trees #178

gannebamm opened this issue Jun 17, 2020 · 0 comments

Comments

@gannebamm
Copy link

Issue summary

The translated pages will get appended language codes. These are redundant, since the language identifier is already set behind the root page. Look at the following setup:

/ - ROOT : TranslatablePage as root element
/de : Welcome site in german
/de/blog : Blog listing site in german
/en : Welcome site in english
/en/blog-en : Blog listing in english

The -en is not needed for the blog listing. It will get worse by adding more subpages, since every single one of the will get a language code appended.

How to reproduce?

create a new page in the default language and see how the language code gets appended in the slug.

/ - ROOT : TranslatablePage as root element
/de : Welcome site ingerman
/de/blog : Blog listing site in german
/en : Welcome site in english
/en/blog-en : Blog listing in english

Technical details

  • Python, django, wagtail and wagtailtrans version
    python 3.8,
    Django=3.0.6,
    wagtailtrans==2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant