Today I Learned

hashrocket A Hashrocket project

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 = ""

|> redirect(external: my_redirect_url)
|> noreply()
See More #elixir TILs
Looking for help? At Hashrocket, we 💜 Elixir! From our many Elixir client projects, to sponsoring the Chicago Elixir Meetup, to the source code for this application, we are invested in this community. Contact us today to talk about your Elixir project.