diff options
| author | Vojta Jina | 2011-10-12 18:26:18 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-10-13 11:10:20 -0700 | 
| commit | ec8bb675b4d85c53f3e8f258ea0c1a975caa4af6 (patch) | |
| tree | a8df67166783faea9e33caaec813f581f11e07a4 /docs/src | |
| parent | 8e32f3fd351fcdbc30822f1996d567fcbcc42c02 (diff) | |
| download | angular.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.html | 4 | 
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), | 
