From 1eae9b0a46fc79093cfeb04a69abc565e6fc4868 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Tue, 10 Feb 2026 17:21:51 +0100 Subject: [PATCH] Fix broken device links in SVG network map report When InstallURL was configured without a trailing slash, the generated SVG links would be malformed (e.g. https://example.comdevices.php instead of https://example.com/devices.php). Normalize the base URI to always include a trailing slash. Fixes #1568 --- report_network_map.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_network_map.php b/report_network_map.php index 8d969366d..a60afdf2e 100644 --- a/report_network_map.php +++ b/report_network_map.php @@ -9,7 +9,7 @@ if(isset($_REQUEST['format'])) { # find the directory that dcim is being hosted out of (used when we build # the url for each node - $baseURI = $config->ParameterArray["InstallURL"]; + $baseURI = rtrim($config->ParameterArray["InstallURL"], '/') . '/'; # way to randomize the colors/styles # 0 == randomize colors if color can't be identified from db # 1 == Randomize colors, keeping same color for each colorid