Skip to content

Commit

Permalink
ignore url hash (e.g. maplibre-gl#12/47.27574/11.39085/0/52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Mar 7, 2024
1 parent 1ec16cd commit 03adb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ input.addEventListener("input", () => {
});

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

0 comments on commit 03adb16

Please sign in to comment.