Is it possible to redirect to example.com/page#anchor
using redirect
and Yesod's routing system? If so, how?
You can use getUrlRender
to get the URL renderer, and then append #anchor
to that. For example:
render <- getUrlRender
redirect $ render myRoute <> "#anchor"
It might be worth adding a convenience function to automate this process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With