UI: Fix handling of servers with Prefix

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Max Berger
2026-04-26 18:08:42 +02:00
parent ab71a1249b
commit cbf1d5088b
3 changed files with 24 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ import { get_auth_header } from "../api/common.js";
import { Collection, CollectionType, Permission } from "../models/collection.js";
import { collectionsCache } from "../utils/collections_cache.js";
import { ErrorHandler } from "../utils/error.js";
import { bytesToHumanReadable, get_element, get_element_by_id } from "../utils/misc.js";
import { bytesToHumanReadable, completeHref, get_element, get_element_by_id } from "../utils/misc.js";
import { UrlTextHandler } from "../utils/url_text.js";
import { CreateEditCollectionScene } from "./CreateEditCollectionScene.js";
import { DeleteConfirmationScene } from "./DeleteConfirmationScene.js";
@@ -237,7 +237,7 @@ export class CollectionsScene {
}
contentcount_form.textContent = contentcount_form_txt;
}
let href = collection.href;
let href = completeHref(collection.href);
new UrlTextHandler(url_form, copy_btn).setHref(href);
download_btn.href = href;
download_btn.onclick = (event) => {