Skip to content

Commit f023286

Browse files
Update conf.py
1 parent 394d7f3 commit f023286

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

conf.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,9 @@ def _build_url(_version=None, _lang=None):
504504
_version = _version or app.config.version
505505
_lang = _lang or app.config.language or 'en'
506506
_canonical_page = f'{pagename}.html'
507-
508-
# legal translations have different URLs schemes as they are not managed on transifex
507+
508+
509+
# legal translations have different URLs schemes as they are not managed on transifex
509510
# e.g. FR translation of /terms/enterprise => /fr/terms/enterprise_fr
510511
if pagename.startswith('legal/terms/'):
511512
if _lang in legal_translations and not pagename.endswith(f"_{_lang}"):
@@ -530,3 +531,9 @@ def _build_url(_version=None, _lang=None):
530531
_canonicalize()
531532
_versionize()
532533
_localize()
534+
_config()
535+
_canonical_page()
536+
_language_code()
537+
_replace_index()
538+
_replace_legal_translations()
539+
_returnfroot()

0 commit comments

Comments
 (0)