diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py index 3efadce2ba4..2a82e7276bf 100644 --- a/addons/web_editor/controllers/main.py +++ b/addons/web_editor/controllers/main.py @@ -387,7 +387,7 @@ class Web_Editor(http.Controller): (note: searching for the URL string is not enough as it could appear in a comment or an xpath expression.) """ - return bool(etree.XML(view.arch).xpath("link[@href='{}']".format(url))) + return bool(etree.XML(view.arch).xpath("//link[@href='{}']".format(url))) view_to_xpath = IrUiView.get_related_views(bundle_xmlid, bundles=True).filtered(views_linking_url)