DJKnaeckebrot
DJKnaeckebrot
KKinde
Created by DJKnaeckebrot on 2/26/2024 in #💻┃support
Post Logout Redirect Parameter
Hi there! I am using Next 13.4.19 with "@kinde-oss/kinde-auth-nextjs": "^2.1.10" I am trying to change the post logout URL for a single page. I have tried /api/auth/logout?post_logout_redirect_url=/logout?from=logout but this keept sending me to / which is my default after logout url. I even tried making it with the logout link
import {
LogoutLink
} from "@kinde-oss/kinde-auth-nextjs/components";
...
return (
<>
<LogoutLink postLogoutRedirectURL={"/logout?from=logout"}>
Text
</LogoutLink>
</>
);
import {
LogoutLink
} from "@kinde-oss/kinde-auth-nextjs/components";
...
return (
<>
<LogoutLink postLogoutRedirectURL={"/logout?from=logout"}>
Text
</LogoutLink>
</>
);
But this also sends me back to / This is intended or am I experiencing some bug or just made a mistake in the config? Thanks for your help! 🙂
66 replies