Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mkdocs_static_i18n/reconfigure.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,8 @@ def reconfigure_material_blog(self, nav: Navigation, mkdocs_config: MkDocsConfig
file.locale_alternate_of = self.current_language
file.url = i18n_file._get_url(mkdocs_config.use_directory_urls)
#
file.page._set_canonical_url(mkdocs_config.get('site_url', None))
if file.page:
file.page._set_canonical_url(mkdocs_config.get('site_url', None))

# reconfigure blog files alternates to the best we can
# since we are past the on_files event and files useless to the current language
Expand Down