Skip to content

Commit 03adb16

Browse files
committed
ignore url hash (e.g. maplibre-gl#12/47.27574/11.39085/0/52)
1 parent 1ec16cd commit 03adb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ input.addEventListener("input", () => {
4848
});
4949

5050
function renderResults(results) {
51-
const me = document.location.href.replace(/[?].*/, "");
51+
const me = document.location.href.replace(/[?#].*/, "");
5252
let found;
5353
results = results.map(({id, score, title}) => {
5454
const href = import.meta.resolve(`../${id}`);

0 commit comments

Comments
 (0)