mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Make all image URLs absolute and fix path for viewer (#15788)
This commit is contained in:
@@ -88,6 +88,7 @@ class CustomMapController extends Controller
|
||||
'bgversion' => $map->background_version,
|
||||
'page_refresh' => Config::get('page_refresh', 300),
|
||||
'map_conf' => $map_conf,
|
||||
'base_url' => Config::get('base_url'),
|
||||
'newedge_conf' => $map->newedgeconfig,
|
||||
'newnode_conf' => $map->newnodeconfig,
|
||||
'vmargin' => 20,
|
||||
@@ -111,6 +112,7 @@ class CustomMapController extends Controller
|
||||
'edit' => true,
|
||||
'vmargin' => 20,
|
||||
'hmargin' => 20,
|
||||
'base_url' => Config::get('base_url'),
|
||||
'images' => $this->listNodeImages(),
|
||||
'maps' => CustomMap::orderBy('name')->where('custom_map_id', '<>', $map->custom_map_id)->get(['custom_map_id', 'name']),
|
||||
];
|
||||
|
@@ -63,7 +63,7 @@
|
||||
var network_nodes = new vis.DataSet({queue: {delay: 100}});
|
||||
var network_edges = new vis.DataSet({queue: {delay: 100}});
|
||||
var node_device_map = {};
|
||||
var custom_image_base = "images/custommap/icons/";
|
||||
var custom_image_base = "{{ $base_url }}images/custommap/icons/";
|
||||
|
||||
function CreateNetwork() {
|
||||
// Flush the nodes and edges so they are rendered immediately
|
||||
|
@@ -33,7 +33,7 @@
|
||||
var edge_port_map = {};
|
||||
var node_device_map = {};
|
||||
var node_link_map = {};
|
||||
var custom_image_base = "images/custommap/";
|
||||
var custom_image_base = "{{ $base_url }}images/custommap/icons/";
|
||||
|
||||
function CreateNetwork() {
|
||||
// Flush the nodes and edges so they are rendered immediately
|
||||
|
Reference in New Issue
Block a user