diff --git a/func.go b/func.go index 20b4f4f..99194bb 100644 --- a/func.go +++ b/func.go @@ -172,7 +172,11 @@ func htmlReplacer(input string, activePage string) string { output = strings.ReplaceAll(output, "!NEWBANNER", htmlNewBanner("Rundgang", "https://www.chaostreff-dortmund.de/rundgang/")) - output = strings.ReplaceAll(output, "!ADMINKEY", activePage) + if strings.Contains(activePage, "/addEvent") { + output = strings.ReplaceAll(output, "!ADMINKEY", activePage) + } else { + output = strings.ReplaceAll(output, "!ADMINKEY", activePage+"/addEvent") + } return output } diff --git a/web/pages/admin/dashboard.html b/web/pages/admin/dashboard.html index 2c6f710..3072070 100644 --- a/web/pages/admin/dashboard.html +++ b/web/pages/admin/dashboard.html @@ -17,7 +17,7 @@ !RAUMSTATUS !EVENTS -
+