Hi,
url_for, and url_with creates (IMHO) wrong URL when applied to
consider two applications: xx and yy (yy is mounted on xx under /yy),
application yy has route named 'ypsilon', then
url_for( ypsilon => {format => 'json'})
returns:
/yy.json/ypsilon.json
How to reproduce:
aplication xx:
#!/usr/bin/env perl
use Mojolicious::Lite;
plugin 'Mount' => { '/yy' => './yy'};
application yy:
#!/usr/bin/env perl
use Mojolicious::Lite;
get '/ypsilon' => sub {
my $c = shift;
$c->render('index');
} => 'ypsilon';
app->start;
__DATA__
@@ index.html.ep
YY: url_with: <%= url_with(format=>'json') %>
YY: url_forh: <%= url_for(ypsilon => format=>'json') %>
Then:
$ morbo xx &
$ mojo get http://localhost:3000/yy/ypsilon
YY: url_with: /yy.json/ypsilon.json
YY: url_forh: /yy.json/ypsilon.json
vitas
@;;
BTW:
$ mojo version |grep -i f
Mojolicious (5.48, Tiger Face)
This version is up to date, have fun!
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.