summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Thomson <blumatrikz@gmail.com>2026-09-20 21:09:44 -0700
committerConnor Thomson <blumatrikz@gmail.com>2026-09-20 21:09:44 -0700
commit83cd353b01660f34d6fd894d15a27fb1b3aeab4c (patch)
tree992fd1ef0e412bb85dc97ef6668e9fe4e416c711
parent1b35cf3f1124b161ebde5e9e3a2c74c8ea2821d0 (diff)
Fix redirect issue
-rwxr-xr-xadmin/admin.php4
-rwxr-xr-xhtml/account.html4
-rwxr-xr-xhtml/footer.html4
-rwxr-xr-xhtml/guest.html4
-rwxr-xr-xsignin/signin.php2
-rwxr-xr-xsignup/signup.php2
-rwxr-xr-xsignup/verify/verify.php2
7 files changed, 11 insertions, 11 deletions
diff --git a/admin/admin.php b/admin/admin.php
index 0a00cf3..eb85ccb 100755
--- a/admin/admin.php
+++ b/admin/admin.php
@@ -29,7 +29,7 @@ if (!is_admin()) {
}
if ($_SERVER["REQUEST_METHOD"] != "POST") {
- header("Location: /admin");
+ header("Location: /admin/");
exit;
}
@@ -84,6 +84,6 @@ try {
exit;
}
-header("Location: /admin");
+header("Location: /admin/");
?>
diff --git a/html/account.html b/html/account.html
index ccba599..4c5b97d 100755
--- a/html/account.html
+++ b/html/account.html
@@ -20,7 +20,7 @@
<input class="toggle" type="checkbox" id="account">
<label class="username" for="account">{{username}}</label>
<div class="menu">
- <a href="/profile?username={{profile}}">Profile</a>
- <a href="/signout">Sign-out</a>
+ <a href="/profile/?username={{profile}}">Profile</a>
+ <a href="/signout/">Sign-out</a>
</div>
</div>
diff --git a/html/footer.html b/html/footer.html
index ddcb7b4..2ca4eb6 100755
--- a/html/footer.html
+++ b/html/footer.html
@@ -18,6 +18,6 @@
<div class="footer">
<p>&copy; {{year}} Connor Thomson</p>
- <p>Content licensed under the <a href="/license/content">Creative Commons Attribution-ShareAlike 4.0 International</a> license unless otherwise noted.</p>
- <p>Website licensed under version 3 of the <a href="/license/website">GNU Affero General Public License</a> or any later version.</p>
+ <p>Content licensed under the <a href="/license/content/">Creative Commons Attribution-ShareAlike 4.0 International</a> license unless otherwise noted.</p>
+ <p>Website licensed under version 3 of the <a href="/license/website/">GNU Affero General Public License</a> or any later version.</p>
</div>
diff --git a/html/guest.html b/html/guest.html
index c37d3fa..b7d506d 100755
--- a/html/guest.html
+++ b/html/guest.html
@@ -16,5 +16,5 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
-<a href="/signup">Sign-up</a>
-<a href="/signin">Sign-in</a>
+<a href="/signup/">Sign-up</a>
+<a href="/signin/">Sign-in</a>
diff --git a/signin/signin.php b/signin/signin.php
index f7f3c23..8f2a88f 100755
--- a/signin/signin.php
+++ b/signin/signin.php
@@ -44,7 +44,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
if ($user['status'] == 'none') {
set_user_id((int)$user['id']);
- header("Location: /signup/verify");
+ header("Location: /signup/verify/");
exit;
}
diff --git a/signup/signup.php b/signup/signup.php
index 7648adf..a70ad9c 100755
--- a/signup/signup.php
+++ b/signup/signup.php
@@ -62,7 +62,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
$subject = "GNUfault.org Verification Code";
if (send_mail($email, $subject, (string)$code)) {
- header("Location: verify");
+ header("Location: verify/");
} else {
echo "Failed to send";
exit;
diff --git a/signup/verify/verify.php b/signup/verify/verify.php
index 9e22132..a5e43af 100755
--- a/signup/verify/verify.php
+++ b/signup/verify/verify.php
@@ -74,7 +74,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
exit;
}
- header("Location: /signin");
+ header("Location: /signin/");
}
?>