Skip to content

Commit

Permalink
Fix rUrl regex (#109)
Browse files Browse the repository at this point in the history
Similar to #57 (#57), the regex for rUrl strips out the `<%= sections %> strings from the repo name.
  • Loading branch information
jfeigel authored and andyperlitch committed Aug 19, 2016
1 parent 7404425 commit 84d4128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/index.tmpl
Expand Up @@ -18,7 +18,7 @@
// before the base attribute is added, causing 404 and terribly slow loading of the docs app.
(function() {
var indexFile = (location.pathname.match(/\/(index[^\.]*\.html)/) || ['', ''])[1],
rUrl = /(#!\/|<%= sections %>|index[^\./]*\.html).*$/,
rUrl = /((#!\/|<%= sections %>|index)[^\./]*\.html).*$/,
origin = location.origin || (window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '')),
baseUrl = origin + location.href.substr(origin.length).replace(rUrl, indexFile),
headEl = document.getElementsByTagName('head')[0],
Expand Down

0 comments on commit 84d4128

Please sign in to comment.