The default logout is in Lobby, pita to use if you are in another section. Sure, just close the browser, but maybe you want to logout and stay on login screen. I dunno your needs, but it was bugging me that logout was in Lobby.
Ok, another easy edit. I made the upper left header OPNsense logo image the logout button.
Caveat - I didn't test reboot persistence just yet, but make edit and just refresh the browser if you had the gui open.
Caveat - I am not sure if layouts vary depending on install, but I used browser inspect to find the class that header image is a part of, then I basically just grep'd all files on the system looking for "navbar-brand" (find / -type f -exec grep "navbar-brand" {} +), which then led me to the volt.
cd /usr/local/opnsense/mvc/app/views/layouts/
cp default.volt default.volt.bak
vi default.volt
(https://i.postimg.cc/7h0B75Cf/logout.png)
Wow weird.
The header code changes when in the Firewall menus. So when there the href is back to "/". Everywhere else the edited code in post #1 works.
I wonder why the code for header area changes when in the Firewall menus?
There is one header template for static PHP pages (URL ending in .php) and a separate one for the MVC pages.
Cheers,
Franco