Skip to content

Commit 28ff21c

Browse files
authored
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 delete collection dialogs and homepage collection titles, ensuring a consistent user experience.
1 parent 1d55ca5 commit 28ff21c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

radicale/web/internal_data/js/scenes/CollectionsScene.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class CollectionsScene {
124124
_ondelete(collection) {
125125
try {
126126
let delete_collection_scene = new DeleteConfirmationScene(
127-
this._user, this._password, "Delete Collection", collection, collection.displayname || collection.href,
127+
this._user, this._password, "Delete Collection", collection, collection.displayname || decodeURIComponent(collection.href),
128128
delete_collection, true
129129
);
130130
push_scene(delete_collection_scene);
@@ -253,7 +253,7 @@ export class CollectionsScene {
253253
edit_btn.classList.add("hidden");
254254
}
255255
}
256-
title_form.textContent = collection.displayname || collection.href;
256+
title_form.textContent = collection.displayname || decodeURIComponent(collection.href);
257257
if (title_form.textContent.length > 30) {
258258
title_form.classList.add("smalltext");
259259
}

0 commit comments

Comments
 (0)