Skip to content

Commit

Permalink
Fix #168: #168 (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Apr 4, 2023
1 parent 8147dae commit 301c067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_alias/templatetags/djangocms_alias_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _get_alias(self, request, static_code, extra_bits):
# Try getting language from the toolbar first (end and view endpoints)
language = getattr(request.toolbar.get_object(), "language", None)
if language not in get_language_list(current_site):
language = None
language = get_language_from_request(request)
else:
language = get_language_from_request(request)
# Try and find an Alias to render
Expand Down

0 comments on commit 301c067

Please sign in to comment.