Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(docs): base url detect /api/ and not api
Browse files Browse the repository at this point in the history
  • Loading branch information
landru29 committed Aug 6, 2015
1 parent f6c5677 commit df1c16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/index.tmpl
Original file line number Diff line number Diff line change
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],
origin, baseUrl, rUrl = /(#!\/|<%= sections %>|index[^\.]*\.html).*$/,
origin, baseUrl, rUrl = /(#!\/|\/<%= sections %>\/|index[^\.]*\.html).*$/,
headEl = document.getElementsByTagName('head')[0],
sync = true;

Expand Down

0 comments on commit df1c16b

Please sign in to comment.