From de9abf8ce910f66ea240cd58cf2d9828a1658f5e Mon Sep 17 00:00:00 2001 From: Mees Frensel Date: Fri, 10 Jul 2026 12:24:06 +0200 Subject: [PATCH] fix(web): URI encode slug and reduce confusion for users --- i18n/en.json | 5 +++-- web/src/lib/components/SharedLinkFormFields.svelte | 7 +++++-- web/src/lib/route.spec.ts | 14 ++++++++++++++ web/src/lib/route.ts | 3 ++- web/src/lib/services/shared-link.service.ts | 4 +--- .../shared-links/(list)/[id]/edit/+page.svelte | 6 ++++-- 6 files changed, 29 insertions(+), 10 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 5f8509b4c7..4ac16f0268 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -814,7 +814,7 @@ "custom_date": "Custom date", "custom_locale": "Custom locale", "custom_locale_description": "Format dates, times, and numbers based on the selected language and region", - "custom_url": "Custom URL", + "custom_url_name": "Custom URL name", "cutoff_date_description": "Keep photos from the last…", "cutoff_day": "{count, plural, one {day} other {days}}", "cutoff_year": "{count, plural, one {year} other {years}}", @@ -1948,7 +1948,8 @@ "shared_link_app_bar_title": "Shared Links", "shared_link_clipboard_copied_massage": "Copied to clipboard", "shared_link_create_error": "Error while creating shared link", - "shared_link_custom_url_description": "Access this shared link with a custom URL", + "shared_link_custom_url_description": "Access this shared link with a custom URL name", + "shared_link_custom_url_warning": "Warning: a custom URL name with a forward slash may not behave as you expect.", "shared_link_edit_description_hint": "Enter the share description", "shared_link_edit_expire_after_option_day": "1 day", "shared_link_edit_expire_after_option_days": "{count} days", diff --git a/web/src/lib/components/SharedLinkFormFields.svelte b/web/src/lib/components/SharedLinkFormFields.svelte index cb371fd800..63cdf25632 100644 --- a/web/src/lib/components/SharedLinkFormFields.svelte +++ b/web/src/lib/components/SharedLinkFormFields.svelte @@ -1,6 +1,6 @@