<%= url_for('/')->to_abs %>?<%= url_with->query %> [download]
In reply to Mojolicious absolute url with query in template? by Anonymous Monk