Skip to content

Commit 86f538e

Browse files
fix(buddyhbook): routing
1 parent 9239b80 commit 86f538e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/buddybook/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
}
3333
}(window.location))
3434
</script>
35+
<script type="text/javascript">
36+
(function() {
37+
const path = window.location.pathname.substring('/buddybook/'.length);
38+
if (path && !window.location.search.includes('?/')) {
39+
window.location.replace('/buddybook/?/' + path + window.location.search + window.location.hash);
40+
}
41+
})();
42+
</script>
3543
</head>
3644
<body>
3745
<div id="root"></div>

0 commit comments

Comments
 (0)