Make all image URLs absolute and fix path for viewer (#15788)

This commit is contained in:
eskyuu
2024-02-01 12:09:44 +08:00
committed by GitHub
parent 11246ca8e1
commit 81bf68ba88
3 changed files with 4 additions and 2 deletions

View File

@@ -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']),
];