Just can’t quite find this in the code (any pointers appreciated) … but the URL / links for items in the Alerts table does not work if RewriteBase is not empty (i.e. if there is a path there, like /librenms). The other widgets are fine, but clicking on an item in the Alerts widget fails (again, if RewriteBase is used).
Working my way through - seems to be related to calling generate_url, thinking something is missing in the array passed over. In the process I also found that the links on the Ports page have the same issue . And the Health pages!
I admit, struggline with all the redirects, function calling, etc. … . I do think it’s in generate (url), inside of LibreNMS/Util/Url.php, but I may be wrong. It’s not adding in the RewriteBase.
UPDATE: OK, confirmed - if I change the $url to $url = url('librenms/' . $vars['page'] . '');
Then it works … but not sure if I pull this from config.php or .htaccess. I admit, neither one seems quite right (nor available), but this is where the fix needs to be.
Figured it out! For generate_url => I’ll fix generate_link yet, then PR coming
But one debugging question, hoping for some guidance. Have tracked down the issue to public static function deviceUrl, trying to get some variable values => how to “see” them? Thanks!