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

fix: Avoid language = None when auto creating static aliases #169

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

fsbraun
Copy link
Sponsor Member

@fsbraun fsbraun commented Apr 3, 2023

Fixes #168/#162, a bug introduced in #165.

Instead of setting language = None if the toolbar language is not part of the language list, now the language for the alias is taken from the request. cms.utils.get_language_from_request falls back to the site's default language if none can be retrieved from the request.

Copy link
Sponsor Member

@marksweb marksweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replicate problem and tested with this fix. All working 👍

@marksweb marksweb merged commit 301c067 into django-cms:master Apr 4, 2023
@fsbraun fsbraun deleted the fix/language_fix branch April 4, 2023 06:49
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

Successfully merging this pull request may close these issues.

Language issue
2 participants