UI: Decode URL in text field for better readability

This PR is a follow-up to #2138. It extends the URL decoding logic to include the edit collection dialogs, ensuring a consistent user experience.
This commit is contained in:
bb2
2026-05-23 23:11:28 +08:00
committed by GitHub
parent 28ff21ccc9
commit 69d46d1673

View File

@@ -196,7 +196,7 @@ export class CreateEditCollectionScene {
this._remove_invalid_types();
this._html_scene.classList.remove("hidden");
if (this._edit && this._title_form) {
this._title_form.textContent = this._collection.displayname || this._collection.href;
this._title_form.textContent = this._collection.displayname || decodeURIComponent(this._collection.href);
}
this._fill_form();
this._submit_btn.onclick = () => this._onsubmit();
@@ -230,4 +230,4 @@ export class CreateEditCollectionScene {
return extract_title(this._collection);
}
}
}