diff --git a/main/scripts/main.js b/main/scripts/main.js index c15a3de..4c78f61 100644 --- a/main/scripts/main.js +++ b/main/scripts/main.js @@ -3,9 +3,9 @@ if (dark) addStyle("/style/dark.css"); // redirect legacy anchors -if (/#privacy\/?/.test(location.hash)) +if (/^#privacy\/?$/.test(location.hash)) location.href = "/privacy"; -if (/#impressum\/?/.test(location.hash)) +if (/^#impressum\/?$/.test(location.hash)) location.href = "/impressum"; $(function () {