LibreNMS in subdirectory problems with links

Having issues with running LibreNMS in subdirectory on Apache / PHP on Fedora Core 33. When I follow the instructions as per the Sub-directory Support instructions, the site works, but some links are incorrectly formed, i.e. they have the subdirectory twice in the path.

For example, from one of my devices page, (https://domain.xyz/librenms/device/device=15/tab=edit/section=snmp/) I click on any of the links in the navigation bar (Device Settings, SNMP, Port Settings etc) they all have the subdirectory twice in the path which results in a 404 error from the webserver.

Example: (https://domain.xyz/librenms/librenms/device/device=15/tab=edit/section=snmp/)

====================================

Component Version
LibreNMS 1.70.1-5-g8e718d6e4
DB Schema 2020_10_12_095504_mempools_add_oids (191)
PHP 7.4.13
Python 3.9.0
MySQL 10.4.17-MariaDB
RRDTool 1.7.2
SNMP NET-SNMP 5.9

====================================

LibreNMS httpd config:

$ cat /etc/httpd/conf.d/30-librenms.conf
#These directives can be inside a virtual host or in the base server configuration
AllowEncodedSlashes On
Alias /librenms /opt/librenms/html

<Directory “/opt/librenms/html”>
AllowOverride All
Options FollowSymLinks MultiViews
Order deny,allow
Require all granted

config.php setting:

This should only be set if you want to force a particular hostname/port

It will prevent the web interface being usable form any other hostname

$config[“base_url”] = ‘/librenms/’;

.htaccess setting:

RewriteBase /librenms