diff options
author | Simo Sorce <simo@redhat.com> | 2014-05-20 14:18:21 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-05-20 16:29:44 -0400 |
commit | 843785e747036935c542c845e2db6efcc0d49b1c (patch) | |
tree | cd53f59ff1f05809e92946670d38779e5e5a0cc2 /templates/master-admin.html | |
parent | 8d082183f55722777ef2ff4baaa0af9962c3ab2e (diff) | |
download | ipsilon.git-843785e747036935c542c845e2db6efcc0d49b1c.tar.gz ipsilon.git-843785e747036935c542c845e2db6efcc0d49b1c.tar.xz ipsilon.git-843785e747036935c542c845e2db6efcc0d49b1c.zip |
Fix handling of SP renames
Properly replace page self.url
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates/master-admin.html')
-rw-r--r-- | templates/master-admin.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/master-admin.html b/templates/master-admin.html index a5a696d..ff5a9dd 100644 --- a/templates/master-admin.html +++ b/templates/master-admin.html @@ -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"> |