Skip to content

Commit

Permalink
port 9f609b6 as part of #80
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuenzenmeyer committed Oct 9, 2017
1 parent 2e6229f commit 5469934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/url-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var urlHandler = {
}

var regex = /\//g;
if ((name.indexOf("viewall-") != -1) && (fileName !== "")) {
if ((name.indexOf("viewall-") !== -1) && (name.indexOf("viewall-") === 0) && (fileName !== "")) {
fileName = baseDir + "/" + fileName.replace(regex, "-") + "/index.html";
} else if (fileName !== "") {
fileName = baseDir+"/"+fileName.replace(regex,"-")+"/"+fileName.replace(regex,"-");
Expand Down

0 comments on commit 5469934

Please sign in to comment.