chore: use navigate instead of href for live views

This commit is contained in:
Ivan R. 2024-08-31 13:47:03 +05:00
parent 7235ad0d00
commit cdccbb1919
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -26,7 +26,7 @@ defmodule ComfycampWeb.NavBar do
<.link :if={@current_user.is_admin} href={~p"/admin"}>
Админка
</.link>
<.link href={~p"/users/settings"}>
<.link navigate={~p"/users/settings"}>
Настройки
</.link>
@ -34,11 +34,11 @@ defmodule ComfycampWeb.NavBar do
Выйти
</.link>
<% else %>
<.link href={~p"/users/register"}>
<.link navigate={~p"/users/register"}>
Зарегистрироваться
</.link>
<.link href={~p"/users/log_in"}>
<.link navigate={~p"/users/log_in"}>
Войти
</.link>
<% end %>