Phoenix LiveView redirect to external url
Today I learned that Phoenix.LiveView.redirect/2 accepts an option external
so I can redirect the user to a full external url.
my_redirect_url = "https://til.hashrocket.com/"
socket
|> redirect(external: my_redirect_url)
|> noreply()
Tweet