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

Commit 9b2c199

Browse files
author
m7r
committed
Merge pull request #162 from landru29/master
fix(docs): base url detect /api/ and not api
2 parents 68f97db + df1c16b commit 9b2c199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/index.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// before the base attribute is added, causing 404 and terribly slow loading of the docs app.
1919
(function() {
2020
var indexFile = (location.pathname.match(/\/(index[^\.]*\.html)/) || ['', ''])[1],
21-
origin, baseUrl, rUrl = /(#!\/|<%= sections %>|index[^\.]*\.html).*$/,
21+
origin, baseUrl, rUrl = /(#!\/|\/<%= sections %>\/|index[^\.]*\.html).*$/,
2222
headEl = document.getElementsByTagName('head')[0],
2323
sync = true;
2424

0 commit comments

Comments
 (0)