Skip to content

Commit

Permalink
Backport "Fix: Correct the navigation to anchor" to LTS (#18985)
Browse files Browse the repository at this point in the history
Backports #17910 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
  • Loading branch information
Kordyjan authored Nov 21, 2023
2 parents 287a32d + bbf95d9 commit ee838f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scaladoc/resources/dotty_res/scripts/ux.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ document
getTocListElement(id).parentElement.classList.toggle("active");
}
if (lastEntry.isIntersecting) {
window.location.hash = "";
history.replaceState(history.state, "", window.location.pathname + window.location.search);
removeAllHighlights();
const id = getIdOfElement(lastEntry);

Expand Down

0 comments on commit ee838f7

Please sign in to comment.