Fix metadata agent and player relative paths
All checks were successful
Publish Metadata Agent Image / build-and-push-image (push) Successful in 1m5s
Publish Web Player Image / build-and-push-image (push) Successful in 1m13s
Publish Server Image / build-and-push-image (push) Successful in 2m10s

This commit is contained in:
2026-03-18 03:36:20 +00:00
parent cd842eb7ac
commit 6e2155d8bd
2 changed files with 12 additions and 6 deletions

View File

@@ -323,7 +323,11 @@ tr:hover td { background: var(--bg-hover); }
</div>
<script>
const API = '/api';
// Derive API base from current page path so it works behind any reverse-proxy prefix
// e.g. page at "/admin" or "/admin/" → API = "/admin/api"
// e.g. page at "/" → API = "/api"
const _base = location.pathname.replace(/\/+$/, '');
const API = _base + '/api';
let currentTab = 'queue';
let currentFilter = null;