I'm currently trying to port one of my small catalyst apps to Mojolicious (just for fun).
Let's say that we are on the page: http://whatever.com/generate . This page has a link to, for example, "generated"
When using a catalyst (with TT templates) and you define the link as
uri_for 'generated'
it will create a link to http://whatever.com/generate/generated But if you define it as
uri_for '/generated'
he will create a link to http://whatever.com/generated
I tried to do the same with Mojolicious' url_for, but it seems to work differently. This does not mean that I canβt say that
url_for 'generated'
or
url_for '/generated'
both calls generate a link to '/ generate / generated'
So my question is: how to get url_for to create a link to an absolute route. i.e. to '/ generated'
thanks Gr, LDX
perl catalyst mojolicious
ldx
source share