fix(admin): wrap plugin lane fetch URL with basePath

Plugin lane page fetches API endpoints with raw absolute URLs, breaking
deployments under a subdirectory. Wrap the fetch URL with basePath() so
window.__BASE_PATH__ is honored, matching other admin pages.

Addresses https://github.com/seaweedfs/seaweedfs/issues/9240
This commit is contained in:
Chris Lu
2026-04-27 09:00:29 -07:00
parent 7f770b1553
commit 3ea489d013
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ templ PluginLane(page string, lane string) {
if (!lane) return;
function fetchAndRender(url, containerId, renderFn) {
fetch(url)
fetch(basePath(url))
.then(r => r.json())
.then(data => {
const el = document.getElementById(containerId);
File diff suppressed because one or more lines are too long