diff --git a/CHANGELOG b/CHANGELOG index 5adadcddfe..f6540ea26c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -116,6 +116,7 @@ Cacti CHANGELOG -issue#5669: System Utilities show incorrect System Memory if memory is larger than 1k -issue#5677: Compatibility improvements for Spikekill under PHP 8.x -issue#5693: Fix Spikekill not following correct time in schedule, Improve PHP 8.3 in spikekill process +-issue#5701: Bad URL formating in the templates_import.php preview mode -feature#5692: Add a "device enabled/disabled" indicator next to the graphs 1.2.26 diff --git a/templates_import.php b/templates_import.php index b6bf91943c..c0940f27ff 100644 --- a/templates_import.php +++ b/templates_import.php @@ -487,7 +487,7 @@ function import() { $.ajax({ type: 'POST', enctype: 'multipart/form-data', - url: urlPath + '/templates_import.php?preview_only=true', + url: (urlPath != '/' ? urlPath + '/':'') + 'templates_import.php?preview_only=true', data: data, processData: false, contentType: false,