Fork me on GitHub
#pedestal
<
2021-12-15
>
Ben Hammond14:12:20

what is the idiomatic way to get an absolute URL out of url-for ? I can cobble somethings together by picking bits of of the context, but I imagine there might be a nicer way I've just not found it out

ddeaguiar16:12:52

Hi @U793EL04V! url-for takes the same options as url-for-routes . You can pass the option :absolute? true to get an absolute url. Example:

(io.pedestal.route/url-for ::home-page :absolute? true)

👍 1
Ben Hammond16:12:28

perfect. Thankyou