Menu

#5516 duplicate webprefix with Webmin + Usermin + Virtualmin

1.981
open
nobody
None
5
2021-10-27
2021-10-27
Kara O'Dell
No

Greetings,

I'm in the process of setting up a LEMP stack on Ubuntu 18.04 LTS. I've used Virtualmin's autoinstall script, and that currently sets up Webmin 1.981, according to the version file. I've configured Webmin to exist in a subdirectory of a virtual host in NGINX, and I've noticed an issue with the navigation menu. On the Virtualmin tab, links will be generated with two webprefixes prepended to the url ('/prefix/prefix/...' instead of '/prefix/...'). I've tracked down the issue to two files, webmin/authentic-theme/navigation-lib.pl line 679 in nav_list_combined_menu() and virtual-server/virtual-server-lib-funcs.pl line 12647 in get_all_global_links(). My solution was to comment out the offending line in navigation-lib.pl. That seems to work fine, but I'll leave that up to you to discern.

Discussion

  • Kara O'Dell

    Kara O'Dell - 2021-10-27

    I've found that this is just an issue with virtualmin, not webmin. I'd believe it's save to close this ticket since it's not applicable.

     
  • Kara O'Dell

    Kara O'Dell - 2021-10-27

    I guess, if anyone finds this useful, Here's the change I applied to the most recent release of virtualmin (6.17-3)

    diff virtual-server-lib-funcs.pl /usr/share/webmin/virtual-server/virtual-server-lib-funcs.pl
    12449c12449
    < local $vm = "$gconfig{'webprefix'}/$module_name";
    ---
    > local $vm = "$module_name";
    12468c12468
    <       $l->{'url'} = "$gconfig{'webprefix'}/$l->{'mod'}/$l->{'page'}";
    ---
    >       $l->{'url'} = "$l->{'mod'}/$l->{'page'}";
    12484c12484
    <   push(@rv, { 'url' => "$gconfig{'webprefix'}/$module_name/".
    ---
    >   push(@rv, { 'url' => "$$module_name/".
    12647c12647
    < my $vm = "$gconfig{'webprefix'}/$module_name";
    ---
    > my $vm = "$module_name";
    12695c12695
    <   push(@rv, { 'url' => "$gconfig{'webprefix'}/config.cgi?$module_name",
    ---
    >   push(@rv, { 'url' => "config.cgi?$module_name",
    
     
  • Ilia

    Ilia - 2021-10-27

    Hi, Kara.

    Thanks for the heads up.

    This must be fixed already with the latest Webmin, Virtualmin and theme commits.

     

Log in to post a comment.