Skip to content

Commit 9ff4b0d

Browse files
committed
remove leading slashes
1 parent a3660bc commit 9ff4b0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/templates/header.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
&& ($_POST["form_type"] ?? null) == "clearView"
99
) {
1010
unset($_SESSION["viewUser"]);
11-
UnityHTTPD::redirect(getURL("/admin/user-mgmt.php"));
11+
UnityHTTPD::redirect(getURL("admin/user-mgmt.php"));
1212
}
1313
// Webroot files need to handle their own POSTs before loading the header
1414
// so that they can do UnityHTTPD::badRequest before anything else has been printed.
@@ -24,7 +24,7 @@
2424
!$_SESSION["user_exists"]
2525
&& !str_ends_with($_SERVER['PHP_SELF'], "/panel/new_account.php")
2626
) {
27-
UnityHTTPD::redirect(getURL("/panel/new_account.php"));
27+
UnityHTTPD::redirect(getURL("panel/new_account.php"));
2828
}
2929
}
3030

@@ -131,7 +131,7 @@
131131
<div class="modalBody"></div>
132132
</div>
133133
</div>
134-
<script src="<?php echo getURL("/js/modal.js"); ?>"></script>
134+
<script src="<?php echo getURL("js/modal.js"); ?>"></script>
135135

136136
<main>
137137

0 commit comments

Comments
 (0)