Skip to content

Commit bb16919

Browse files
committed
Fix: Correct the navigation to anchor
1 parent 57c2b66 commit bb16919

File tree

1 file changed

+1
-1
lines changed
  • scaladoc/resources/dotty_res/scripts

1 file changed

+1
-1
lines changed

scaladoc/resources/dotty_res/scripts/ux.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ document
285285
getTocListElement(id).parentElement.classList.toggle("active");
286286
}
287287
if (lastEntry.isIntersecting) {
288-
window.location.hash = "";
288+
history.replaceState(null, "", window.location.pathname + window.location.search);
289289
removeAllHighlights();
290290
const id = getIdOfElement(lastEntry);
291291

0 commit comments

Comments
 (0)