diff --git a/_extensions/odoo/layout.html b/_extensions/odoo/layout.html index e61e87bf6..1460506ab 100644 --- a/_extensions/odoo/layout.html +++ b/_extensions/odoo/layout.html @@ -62,7 +62,17 @@ - + {# warning: if doc structure change, these rules may have + to change as well #} + {% if pagename.count('/') %} + {# If the current document is an application's content, + link to the application root #} + {% set updoc, _ = pagename.split('/', 1) %} + {% else %} + {# otherwise link to master_doc #} + {% set updoc = master_doc %} + {% endif %} +