Sub-directory support broken after upgrade to LibreNMS 1.43-127-g54de884


#1

I have several librenms servers that broke after update last night. The url has gone crazy.

/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/dashboard/login

I have been setup like this for several years.
https://docs.librenms.org/#Extensions/Sub-Directory/

Here is my setup in config.php
$config[‘base_url’] = “/dashboard/”;

Here is my setup in html/.htaccess
RewriteBase /dashboard

If I change the .env file then all works as excepted but as soon as I do a daily.sh update all is broken.
APP_URL=/dashboard/
to
APP_URL=/

Any ideas on what has heppened?


#2

Try commenting APP_URL out


#3

Yes it worked when commented out. Wow that worked and when i did daily.sh it remained commented out. Is this a bug?


#4

Shouldn’t be but you don’t need to set that value so don’t.


#5

Merged the fix for this https://github.com/librenms/librenms/pull/9308