Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Anonymous Monk
on Mar 19, 2020 at 09:54 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2022-05-16 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (63 votes). Check out past polls.

    Notices?