diff --git a/addons/web/static/src/js/public/public_root.js b/addons/web/static/src/js/public/public_root.js index 10a2d20efc3..eedc6cf5377 100644 --- a/addons/web/static/src/js/public/public_root.js +++ b/addons/web/static/src/js/public/public_root.js @@ -163,6 +163,12 @@ var PublicRoot = publicWidget.RootWidget.extend(ServiceProviderMixin, { if ($from === undefined) { $from = this.$('#wrapwrap'); + if (!$from.length) { + // TODO Remove this once all frontend layouts possess a + // #wrapwrap element (which is necessary for those pages to be + // adapted correctly if the user installs website). + $from = this.$el; + } } if (options === undefined) { options = {};