# Programming Phoenix LiveView: reference to live\_redirect seems to be misplaced (page 60)

**URL:** <https://forum.devtalk.com/t/programming-phoenix-liveview-reference-to-live-redirect-seems-to-be-misplaced-page-60/196095>\
**Category:** PragProg Customers\
**Tags:** book-programming-phoenix-liveview, question\
**Created:** [23 April 2025 02:59 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-reference-to-live-redirect-seems-to-be-misplaced-page-60/196095 "2025-04-23T02:59:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siraj-samsudeen](https://forum.devtalk.com/user_avatar/forum.devtalk.com/siraj-samsudeen/32/7341_2.png) [@siraj-samsudeen](https://forum.devtalk.com/u/siraj-samsudeen)\
**Post date:** [23 April 2025 02:59 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-reference-to-live-redirect-seems-to-be-misplaced-page-60/196095/1 "2025-04-23T02:59:52Z")

</div>

When discussing the code below, the text talks about live\_redirect whereas live\_redirect is not mentioned in the code. Am I missing something?

Here is the text and the code for reference  
Allows any routes in this live\_session group to support a live\_redirect from the client with navigation purely over the existing WebSocket connection. With a live\_redirect, a new HTTP request won’t be sent to the server in order to mount a new LiveView.

```auto
# /lib/pento_web/router.ex
scope "/", PentoWeb do
pipe_through [:browser, :require_authenticated_user]
live_session :require_authenticated_user,
root_layout: {PentoWeb.Layouts, :root},
on_mount: [{PentoWeb.UserAuth, :ensure_authenticated}] do
live "/users/settings", UserSettingsLive, :edit live "/users/settings/confirm_email/:token"
UserSettingsLive, :confirm_email live "/guess", WrongLive
end end

```

---

<div class="post-metadata">

**Author:** ![flavius-popan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/flavius-popan/32/7515_2.png) [@flavius-popan](https://forum.devtalk.com/u/flavius-popan)\
**Post date:** [1 July 2025 22:40 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-reference-to-live-redirect-seems-to-be-misplaced-page-60/196095/2 "2025-07-01T22:40:04Z")

</div>

This tripped me up too, the whole section about Layouts & Live Sessions took all day to grok. He links to [Live navigation — Phoenix LiveView v1.0.17](https://hexdocs.pm/phoenix_live_view/live-navigation.html) in a footnote and I presume `live_redirect`s are to be used later.
