aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorVojta Jina2011-10-12 18:26:18 -0700
committerIgor Minar2011-10-13 11:10:20 -0700
commitec8bb675b4d85c53f3e8f258ea0c1a975caa4af6 (patch)
treea8df67166783faea9e33caaec813f581f11e07a4 /docs/src
parent8e32f3fd351fcdbc30822f1996d567fcbcc42c02 (diff)
downloadangular.js-ec8bb675b4d85c53f3e8f258ea0c1a975caa4af6.tar.bz2
fix(docs): set proper base href when hashbang url requested
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/templates/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html
index 87c27ac0..083fe2ab 100644
--- a/docs/src/templates/index.html
+++ b/docs/src/templates/index.html
@@ -12,8 +12,8 @@
// we can't add css/js the usual way, because some browsers (FF) eagerly prefetch resources
// before the base attribute is added, causing 404 and terribly slow loading of the docs app.
(function() {
- var indexFile = (location.pathname.match(/\/(index[^\.]*\.html)/) || ['', 'index.html'])[1],
- rUrl = /(api|guide|misc|tutorial|cookbook|index[^\.]*\.html).*$/,
+ var indexFile = (location.pathname.match(/\/(index[^\.]*\.html)/) || ['', ''])[1],
+ rUrl = /(#!\/|api|guide|misc|tutorial|cookbook|index[^\.]*\.html).*$/,
baseUrl = location.href.replace(rUrl, indexFile),
jQuery = /index-jq[^\.]*\.html$/.test(baseUrl),
debug = /index[^\.]*-debug\.html$/.test(baseUrl),