Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit fb7c108

Browse files
committed
remove index.html from a path if necessary
1 parent 735ba5f commit fb7c108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/styleguide/js/styleguide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
if ((oGetVars.p != undefined) || (oGetVars.pattern != undefined)) {
362362
patternName = (oGetVars.p != undefined) ? oGetVars.p : oGetVars.pattern;
363363
patternPath = urlHandler.getFileName(patternName);
364-
iFramePath = (patternPath != "") ? window.location.protocol+"//"+window.location.host+window.location.pathname+patternPath : iFramePath;
364+
iFramePath = (patternPath != "") ? window.location.protocol+"//"+window.location.host+window.location.pathname.replace("index.html","")+patternPath : iFramePath;
365365
}
366366

367367
document.getElementById("sg-viewport").contentWindow.location.assign(iFramePath);

0 commit comments

Comments
 (0)