Skip to content

Commit e6018d3

Browse files
committed
Try to fix explorerTree
1 parent fd1a41d commit e6018d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/webdoc-default-template/tmpl/layout.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const integrations = JSON.stringify(config.integrations);
3434
window.appData = {
3535
applicationName: "<?js= config.applicationName ?>",
3636
appBar: JSON.parse(`<?js= JSON.stringify(appBar) ?>`),
37-
explorerTree: "<?js= siteRoot + "/explorer/" + (document && document.type === "TutorialDoc" ? "tutorials" : "reference") + ".json" ?>",
37+
explorerTree: "<?js= (siteRoot ? "/" + siteRoot : "") + "/explorer/" + (document && document.type === "TutorialDoc" ? "tutorials" : "reference") + ".json" ?>",
3838
siteRoot: "<?js= siteRoot ?>",
3939
integrations: JSON.parse(`<?js= integrations ?>`),
4040
};

0 commit comments

Comments
 (0)