Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Mojolicious absolute url with query in template?

by Anonymous Monk
on Mar 19, 2020 at 09:54 UTC ( [id://11114467]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Mojolicious absolute url with query in template? (updated)
in thread Mojolicious absolute url with query in template?

Thank you haukex! I tried url_with too but was doing something stupid that only returned the query string:
url_with('/')->to_abs->query
Your answer (of course) returns the absolute request url with query string:
url_with('/')->to_abs
Also those link_to helpers are super cool. Now I see what Corion meant by passing params to the query method and why I'd want to do that.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114467]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-03-29 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found