Explorar el Código

Handle hash-bang urls used sometimes in v1

Alasdair Smith hace 8 años
padre
commit
baf8b599d7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/web/app/views/_scripts/active_tab.pug

+ 1 - 1
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)