Fork me on GitHub
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


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