overly specific regexing
All checks were successful
Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2021-10-11 14:17:29 +02:00
parent cfe0ae6e88
commit 023cb367d7

View file

@ -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 () {