$auth->bridge->to('controller-album#allow') ;
$album_active->route( '/home/photoalbum/:album/edit/',
album => qr/\d+/ )->via('get')
->to('controller-photo_album#edit');
There was possibility to get $self->param('album') in
Controller::Album::allow in the older versions of Mojolicious. But in
latest github version, $self->param('album') return 'undefined' in
Controller::Album::allow.
Best regards,
Oleg Zhelo
The old behavior was actually the bug.
--
Sebastian Riedel
http://labs.kraih.com
http://mojolicious.org
http://twitter.com/kraih
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
That commit looks entirely unrelated.
> Can you explain why you decided it's a bug?
The problem is really simple, it screws up the renderer.
$r->bridge('/foo')->to('foo#bar')->route('/baz')->to('#baz');
Take this bridge for example.
sub bar {
my $self = shift;
$self->render and return unless $self->req->headers->header('X-Bender');
}
Old broken behavior would mean 'foo/baz.html.ep' gets rendered, new fixed behavior 'foo/bar.html.ep'.