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.
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.