From 7c0be017eedc833c6c3b5d050a7e58167d7f136c Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 10 Dec 2019 16:42:25 +0100 Subject: [PATCH] [FIX] conf: avoid // urls e.g. https://www.odoo.com/documentation/user/13.0//crm.html when creating link with no branch/lang name --- conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf.py b/conf.py index c71af5c6b..abb0a508a 100644 --- a/conf.py +++ b/conf.py @@ -401,6 +401,8 @@ def localize(app, pagename, templatename, context, doctree): def _build_url(root, branch, pagename): + if not branch: + root = root.rstrip('/') return "{canonical_url}{canonical_branch}/{canonical_page}".format( canonical_url=root, canonical_branch=branch,