Prevent changeset comment links from reloading the page

This commit is contained in:
Anton Khorev 2025-03-05 18:09:29 +03:00
parent a9752be6b3
commit cf80eb50f3

View file

@ -380,6 +380,11 @@ $(function () {
return;
}
// Open local anchor links as normal.
if ($(this).attr("href")?.startsWith("#")) {
return;
}
// Ignore cross-protocol and cross-origin links.
if (location.protocol !== this.protocol || location.host !== this.host) {
return;