django-cms / djangocms-alias

Other
8 stars 23 forks source link

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

Closed fsbraun closed 1 year ago

fsbraun commented 1 year ago

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.