Fix auth redirects for /dreamgirl subpath

Make login/logout and redirects work when deployed under a subdirectory (e.g. /dreamgirl).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dsyoon
2026-02-08 12:39:03 +09:00
parent e008000aa6
commit ffcb263131
5 changed files with 22 additions and 8 deletions

View File

@@ -19,6 +19,6 @@ if (ini_get('session.use_cookies')) {
}
session_destroy();
header('Location: /login.php');
header('Location: ' . dreamgirl_url('login.php'));
exit;