diff --git a/portal/static/js/components/pieces/Nav.mjs b/portal/static/js/components/pieces/Nav.mjs index 9aad58b05228ce0a94e651f8f093f9725dbf15bb..7a6052cbeef926675ed7768ddf5b69fec74cb995 100644 --- a/portal/static/js/components/pieces/Nav.mjs +++ b/portal/static/js/components/pieces/Nav.mjs @@ -1,8 +1,7 @@ import { NavPageLink } from "./NavPageLink.mjs" import { logout, isLoggedIn } from "../../account.mjs" -const hasQueryParam = (param, path) => (param in m.parsePathname(path).params); - +const hasQueryParam = (param, path) => param in m.parsePathname(path).params export const Nav = { view() { @@ -63,7 +62,9 @@ export const Nav = { iconOnly: true, }) : m(NavPageLink, { - href: hasQueryParam("next", m.route.get()) ? m.route.get() : `/login?next=${m.route.get() || "/"}`, + href: hasQueryParam("next", m.route.get()) + ? m.route.get() + : `/login?next=${m.route.get() || "/"}`, label: " Anmelden", icon: "fa-solid fa-right-to-bracket", }),