Skip to content

Commit 5efa52d

Browse files
committed
Fix for pathname
1 parent bb287e0 commit 5efa52d

File tree

1 file changed

+3
-1
lines changed
  • packages/webdoc-default-template/src/app/components/Explorer

1 file changed

+3
-1
lines changed

packages/webdoc-default-template/src/app/components/Explorer/helpers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export function isSamePage(data) {
2-
const path = `${window.location.pathname}.html`;
2+
const path = window.location.pathname.includes(".html") ?
3+
window.location.pathname :
4+
`${window.location.pathname}.html`;
35

46
if (data.page.startsWith("/") && data.page === path) {
57
return true;

0 commit comments

Comments
 (0)