diff --git a/rio/session.py b/rio/session.py index 95ec3264..f9984743 100644 --- a/rio/session.py +++ b/rio/session.py @@ -854,7 +854,7 @@ window.location.href = {json.dumps(str(target_url))}; // Scroll to the top. This has to happen before we change the URL, because if // the URL has a #fragment then we will scroll to the corresponding ScrollTarget let element = { - 'document.querySelector(".rio-user-root-container-inner")' + 'document.querySelector(".rio-user-root-container-outer")' if self._app_server.debug_mode else 'document.documentElement' };