diff --git a/apps/scandic-web/components/Current/Header/MainMenu/index.tsx b/apps/scandic-web/components/Current/Header/MainMenu/index.tsx index 944b17e99..8be45a7f4 100644 --- a/apps/scandic-web/components/Current/Header/MainMenu/index.tsx +++ b/apps/scandic-web/components/Current/Header/MainMenu/index.tsx @@ -43,7 +43,7 @@ export function MainMenu({ const lang = useLang() const pathname = usePathname() const baseUrl = env.NEXT_PUBLIC_PUBLIC_URL || "https://www.scandichotels.com" - const loginPathname = useLazyPathname() + const loginPathname = useLazyPathname({ includeSearchParams: true }) const isThreeStaticPagesPathnames = [ "/de/sponsoring", diff --git a/apps/scandic-web/components/Header/MainMenu/MyPagesMenuWrapper/index.tsx b/apps/scandic-web/components/Header/MainMenu/MyPagesMenuWrapper/index.tsx index daa085c33..2020d48ed 100644 --- a/apps/scandic-web/components/Header/MainMenu/MyPagesMenuWrapper/index.tsx +++ b/apps/scandic-web/components/Header/MainMenu/MyPagesMenuWrapper/index.tsx @@ -24,7 +24,7 @@ import styles from "./myPagesMenuWrapper.module.css" export default function MyPagesMenuWrapper() { const intl = useIntl() const lang = useLang() - const loginPathname = useLazyPathname() + const loginPathname = useLazyPathname({ includeSearchParams: true }) const { data: session } = useSession() const isUserLoggedIn = isValidClientSession(session) diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/Details/RoomOne/JoinScandicFriendsCard/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/Details/RoomOne/JoinScandicFriendsCard/index.tsx index 22df44085..cbe403781 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/Details/RoomOne/JoinScandicFriendsCard/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/Details/RoomOne/JoinScandicFriendsCard/index.tsx @@ -26,7 +26,7 @@ export default function JoinScandicFriendsCard({ }: JoinScandicFriendsCardProps) { const lang = useLang() const intl = useIntl() - const loginPathname = useLazyPathname() + const loginPathname = useLazyPathname({ includeSearchParams: true }) const { room, actions: { updateJoin },