[dw-free] Make siteschemes link to /nav/BLAH instead of /nav?cat=BLAH
[commit: http://hg.dwscoalition.org/dw-free/rev/e5a8ee8c1d89]
http://bugs.dwscoalition.org/show_bug.cgi?id=2696
Make menu headers link to /nav/category, instead of /nav?cat=category.
Patch by
foxfirefey.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2696
Make menu headers link to /nav/category, instead of /nav?cat=category.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/bml/scheme/global.look
-------------------------------------------------------------------------------- diff -r 326fc5843cda -r e5a8ee8c1d89 cgi-bin/bml/scheme/global.look --- a/cgi-bin/bml/scheme/global.look Fri Jun 25 14:54:44 2010 +0800 +++ b/cgi-bin/bml/scheme/global.look Fri Jun 25 15:00:31 2010 +0800 @@ -305,7 +305,7 @@ menunav<= push @displayed, "<li class='subnav'><a href='$item->{url}'>" . BML::ml( "$item->{text}", $item->{text_opts} ) . "</a></li>" if $item->{display}; } if ( @displayed ) { # only display a top-level menu if any of its items are displayed - $ret .= "<li id='${cat}_topnav' class='topnav'><a href='$LJ::SITEROOT/nav?cat=$cat'>$ML{\"menunav.$cat\"}</a>\n"; + $ret .= "<li id='${cat}_topnav' class='topnav'><a href='$LJ::SITEROOT/nav/$cat'>$ML{\"menunav.$cat\"}</a>\n"; $ret .= "<ul id='${cat}_subnav' class='subnav_container'>\n"; $ret .= join( "\n", @displayed ) . "\n"; $ret .= "</ul>\n"; --------------------------------------------------------------------------------