From 2dd05ca984b135ab1d24401bafd42ad592702f65 Mon Sep 17 00:00:00 2001 From: Jing T Date: Sat, 30 May 2026 13:11:14 -0400 Subject: [PATCH] Allow rtsps:// in camera wizard URL validation (#23352) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extends the custom URL validator to accept both rtsp:// and rtsps://, and updates the error message in all 25 translated locales to reflect both schemes. Also fixes a pre-existing typo in the Slovak translation (\"rtsp / \" → \"rtsp://\"). Co-authored-by: Claude Sonnet 4.6 --- web/public/locales/en/views/settings.json | 2 +- web/src/components/settings/wizard/Step1NameCamera.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.json index 2374c506e7..a19b70cec4 100644 --- a/web/public/locales/en/views/settings.json +++ b/web/public/locales/en/views/settings.json @@ -320,7 +320,7 @@ "nameLength": "Camera name must be 64 characters or less", "invalidCharacters": "Camera name contains invalid characters", "nameExists": "Camera name already exists", - "customUrlRtspRequired": "Custom URLs must begin with \"rtsp://\". Manual configuration is required for non-RTSP camera streams." + "customUrlRtspRequired": "Custom URLs must begin with \"rtsp://\" or \"rtsps://\". Manual configuration is required for non-RTSP camera streams." } }, "step2": { diff --git a/web/src/components/settings/wizard/Step1NameCamera.tsx b/web/src/components/settings/wizard/Step1NameCamera.tsx index 9c5545db41..98c15bcbab 100644 --- a/web/src/components/settings/wizard/Step1NameCamera.tsx +++ b/web/src/components/settings/wizard/Step1NameCamera.tsx @@ -87,7 +87,8 @@ export default function Step1NameCamera({ .string() .optional() .refine( - (val) => !val || val.startsWith("rtsp://"), + (val) => + !val || val.startsWith("rtsp://") || val.startsWith("rtsps://"), t("cameraWizard.step1.errors.customUrlRtspRequired"), ), })