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

@@ -35,7 +35,7 @@ dreamgirl_require_login_page();
<div id="container">
<div style="display:flex; align-items:baseline; justify-content:space-between; gap:12px;">
<h1 style="margin:0;"><a href="https://ncue.net" target="_blank" rel="noopener noreferrer">NCue</a></h1>
<div style="font-size:12px;"><a href="/logout.php">Logout</a></div>
<div style="font-size:12px;"><a href="<?php echo htmlspecialchars(dreamgirl_url('logout.php'), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); ?>">Logout</a></div>
</div>
<div class="gallery-wrap">