From 05f3db3d3553c2f16796893b586bac96a9c8041d 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 a83e62499..e28410652 100644 --- a/conf.py +++ b/conf.py @@ -411,6 +411,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,