aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/templates/index.html')
-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),