[dw-free] /cgi-bin/DW/Controller/Legal.pm should register "/legal/index" not "/legal&
[commit: http://hg.dwscoalition.org/dw-free/rev/e21f46b12510]
http://bugs.dwscoalition.org/show_bug.cgi?id=3828
Make /legal, /legal/, /legal/index, all work.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3828
Make /legal, /legal/, /legal/index, all work.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/DW/Controller/Legal.pm
-------------------------------------------------------------------------------- diff -r d4e639603f3f -r e21f46b12510 cgi-bin/DW/Controller/Legal.pm --- a/cgi-bin/DW/Controller/Legal.pm Tue Aug 16 09:54:01 2011 +0800 +++ b/cgi-bin/DW/Controller/Legal.pm Fri Aug 19 11:02:25 2011 +0800 @@ -35,7 +35,7 @@ } # register the index view -DW::Routing->register_string( '/legal/', \&index_handler, app => 1 ); +DW::Routing->register_string( '/legal/index', \&index_handler, app => 1 ); sub index_handler { return DW::Template->render_template( 'legal/index.tt', $args ); --------------------------------------------------------------------------------