Live_redirect from a child rendered LiveView

You have to message the parent because the URL is a “single resource”, and if you have two things trying to change it in incompatible ways, your application goes into an inconsistent state.

It doesn’t know to be “use pubsub”, you could do it like:

send(socket.root_pid, {:redirect_to, Routes.foo_bar(...)})

And then handling it in your parent handle_info, but in a nutshell, you should double think if this approach is correct. In particular, double think if you really need two live views (especially with the components features in master - although you will need to check the source to read the docs).