Skip to content

Commit

Permalink
fix: use verified route to fix live template path
Browse files Browse the repository at this point in the history
  • Loading branch information
meagharty committed Aug 6, 2024
1 parent 6b4a1b4 commit c007680
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/arrow_web/controllers/layout_html/app.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<div class="m-header__long-name navbar-text justify-content-end navbar-collapse collapse">
Adjustments to the Regular Right of Way
<%= if @conn && Plug.Conn.get_session(@conn, :logout_url), do:
<%= if Plug.Conn.get_session(@conn, :logout_url), do:
link("logout",
to: Routes.auth_path(@conn, :logout),
to: ~p"/auth/logout",
class: "ml-2 btn btn-outline-danger"
) %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/arrow_web/controllers/layout_html/live.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Adjustments to the Regular Right of Way
<%= if @logout_url, do:
link("logout",
to: Routes.auth_path(@conn, :logout),
to: ~p"/auth/logout",
class: "ml-2 btn btn-outline-danger"
) %>
</div>
Expand Down

0 comments on commit c007680

Please sign in to comment.