From e00dcf785079988699ce870314f8d32ce379cad2 Mon Sep 17 00:00:00 2001 From: Mees Frensel <33722705+meesfrensel@users.noreply.github.com> Date: Wed, 15 Jul 2026 19:32:05 +0200 Subject: [PATCH] fix(web): URI encode slug and reduce confusion for users (#29796) Co-authored-by: bwees --- 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 7a3e719f6d..53d1e4a6b2 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -814,7 +814,6 @@ "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", "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 +1947,9 @@ "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_title": "Custom URL", + "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..30067bcb9b 100644 --- a/web/src/lib/components/SharedLinkFormFields.svelte +++ b/web/src/lib/components/SharedLinkFormFields.svelte @@ -1,6 +1,6 @@