Fix handling of SP renames
[cascardo/ipsilon.git] / templates / master-admin.html
index a5a696d..ff5a9dd 100644 (file)
@@ -9,6 +9,15 @@
     <script src="{{ basepath }}/ui/js/jquery.js"></script>
     <script src="{{ basepath }}/ui/js/bootstrap.js"></script>
     <script src="{{ basepath }}/ui/js/patternfly.js"></script>
+    {% if newurl %}
+    <script>
+        $( document ).ready(
+            function() {
+                history.replaceState({} , document.title, "{{ newurl }}");
+            }
+        );
+    </script>
+    {% endif %}
   </head>
   <body>
     <nav class="navbar navbar-default navbar-pf" role="navigation">