diff --git a/packages/app-shell/src/router.js b/packages/app-shell/src/router.js
index 8f90830a771b91d0ea8abc525bd13b43fe82c4a1..c05b899c25235e66d9e50f3231fdbcf62cf7daab 100644
--- a/packages/app-shell/src/router.js
+++ b/packages/app-shell/src/router.js
@@ -44,7 +44,9 @@ export class Router {
             // In case of a router redirect, set the new location
             if (newPathname !== oldPathName) {
                 const referrerUrl = location.href;
-                window.history.replaceState({}, '', newPathname);
+                if (!newPathname.endsWith('/root')) {
+                    window.history.replaceState({}, '', newPathname);
+                }
                 this.dispatchLocationChanged(referrerUrl);
             }
             this.setState(page);
@@ -66,7 +68,9 @@ export class Router {
             if (newPathname === oldPathname)
                 return;
             const referrerUrl = location.href;
-            window.history.pushState({}, '', newPathname);
+            if (!newPathname.endsWith('/root')) {
+                window.history.pushState({}, '', newPathname);
+            }
             this.dispatchLocationChanged(referrerUrl);
         });
     }