From baf8b599d756f3f12654f9c6ae3b26e808b15bae Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Mon, 24 Sep 2018 10:59:49 +0100 Subject: [PATCH] Handle hash-bang urls used sometimes in v1 --- services/web/app/views/_scripts/active_tab.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/views/_scripts/active_tab.pug b/services/web/app/views/_scripts/active_tab.pug index 290505d6cb..d79159739a 100644 --- a/services/web/app/views/_scripts/active_tab.pug +++ b/services/web/app/views/_scripts/active_tab.pug @@ -1,7 +1,7 @@ script(type="text/javascript"). if (window.location.hash) { setTimeout(function(){ - tabID = window.location.hash.replace('#', '') + tabID = window.location.hash.replace(/#!?/, '') tab = document.getElementById(tabID) if (tab && typeof(tab) != 'undefined' && tab != null) { tab.setAttribute('active', true)