MyAppWeb.Router.Helpers.live_path/2 is undefined or private

LiveViews are not like standard controllers. They don’t use actions. See Phoenix.LiveView — Phoenix LiveView v0.15.7 or The Lifecycle of a Phoenix LiveView for more info.

What you want to do here for simple navigation is

<%= live_redirect "Link text", to: Routes.live_path(@socket, AnotherLiveView) %>
3 Likes