mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-22 21:41:50 +03:00
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:
@@ -184,8 +184,8 @@ export default function ObjectSettingsView({
|
|||||||
{config?.cameras[cameraConfig.name]?.webui_url && (
|
{config?.cameras[cameraConfig.name]?.webui_url && (
|
||||||
<div className="mb-5 text-sm text-muted-foreground">
|
<div className="mb-5 text-sm text-muted-foreground">
|
||||||
<div className="mt-2 flex flex-row items-center text-primary">
|
<div className="mt-2 flex flex-row items-center text-primary">
|
||||||
<Link
|
<a
|
||||||
to={config?.cameras[cameraConfig.name]?.webui_url ?? ""}
|
href={config?.cameras[cameraConfig.name]?.webui_url ?? ""}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="inline"
|
className="inline"
|
||||||
@@ -194,7 +194,7 @@ export default function ObjectSettingsView({
|
|||||||
camera: cameraName,
|
camera: cameraName,
|
||||||
})}
|
})}
|
||||||
<LuExternalLink className="ml-2 inline-flex size-3" />
|
<LuExternalLink className="ml-2 inline-flex size-3" />
|
||||||
</Link>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user