On 23/09/2014 10:20, Luc Didry wrote:
> On 23/09/2014 06:18, Stefan Adams wrote:
>> I feel like the core Plugin Mount would best address your objectives.
>>
>> I've built a router app based entirely on Mount that simply makes other
>> apps available within their respective url name spaces.
>>
>> Hopefully that's what you're looking for!
> 
> Seems nice but fails.
> 
> In my router application :
> $self->plugin('Mount' => {'/myapp' => File::Spec->catfile($Bin, '..',
> 'script', 'application')});
> 
> url_for('/') (or with the route name url_for('index')) still returns
> '/myapp' and not '/myapp/' as wanted while if I don't put my app in a
> subdirectory, url_for('/') returns '/'.
> 
> If I mount the app under '/myapp/', the result is the same.
> 
> I use the latest Mojolicious version (5.44) and perl 5.14.2
> 

Sebastian, do you have any clue on how I could get a trailing slash in
url_for('/') in a mounted app or in using
http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Rewriting ?

To me, it seems like a bug, but you maybe have one of your wonderful
snippets that solves the thing :)
-- 
Luc
http://www.fiat-tux.fr/
Internet n'est pas compliqué, Internet est ce que vous en faites.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to