Fixes broken plugin menu entries with --http-prefix

Addresses #3957
This commit is contained in:
Simone Mainardi 2020-05-20 12:07:22 +02:00
parent c1c5a828e0
commit f3b2b4869e
2 changed files with 4 additions and 2 deletions

View file

@ -687,7 +687,9 @@ function plugins_utils.getMenuEntries()
local menu_entry = dofile(full_path)
if(menu_entry and ((not menu_entry.is_shown) or menu_entry.is_shown())) then
menu_entry.url = plugins_utils.getUrl(menu_entry.script)
-- Don't add any getHttpPrefix to the url here, it's the caller that
-- can potentially add it
menu_entry.url = "/plugins/" .. menu_entry.script
menu[plugin_key] = menu_entry
if menu_entry.menu_entry then