use a plain anchor for the camera webui_url link

react-router 7.18.6 throws during render when a Link target looks like a scheme URL but isn't scheme://, so a malformed webui_url such as http:/192.168.1.5 (which the camera form accepts) crashed the object debug view into the route error boundary. A plain anchor renders any value, and a URL with a leading space no longer becomes a relative link.
This commit is contained in:
Josh Hawkins
2026-11-22 08:02:14 -06:00
parent 891a0cbb16
commit fbf71b1ba9
@@ -184,8 +184,8 @@ export default function ObjectSettingsView({
{config?.cameras[cameraConfig.name]?.webui_url && (
<div className="mb-5 text-sm text-muted-foreground">
<div className="mt-2 flex flex-row items-center text-primary">
<Link
to={config?.cameras[cameraConfig.name]?.webui_url ?? ""}
<a
href={config?.cameras[cameraConfig.name]?.webui_url ?? ""}
target="_blank"
rel="noopener noreferrer"
className="inline"
@@ -194,7 +194,7 @@ export default function ObjectSettingsView({
camera: cameraName,
})}
<LuExternalLink className="ml-2 inline-flex size-3" />
</Link>
</a>
</div>
</div>
)}