FluentAuth: “Already Logged In” page always redirects to root instead of custom URL
Hi Shahjahan Jewel,
I’ve set FluentAuth to redirect logins to Domain.com/hub, and this works perfectly when a user logs in the first time.
The problem is when a logged-in user visits the login page again (Domain.com/login). WordPress shows:
“You are already logged in. Go to Home Page.”
But the Go to Home Page link always points to the root domain (Domain.com) instead of my custom redirect (Domain.com/hub).
I’ve already tried multiple code snippets and workarounds (filters like login_redirect, login_message, login_headerurl, etc.), but nothing changes this behavior.
Request:
Can you add an option in FluentAuth to set the destination URL for the “already logged in” state (so it follows the same custom login redirect I set in FluentAuth)?
This would make the login flow consistent for community members.
Thanks for looking into this!
I am also facing the same problem, please Shahjahan Jewel, look into this request
Thanks for pointing this out, I just noticed it on my community as well, please someone should fix this ASAP
I use a costum login page. Not the default of auth. And works.
Nathaly Haezebrouck is this the coded you added - [fluent_auth redirect_to="your_URL"]
Bryan William Green is the Fluent Auth (shortcode) and bleu is regular text field with link to (studio/your community dashboard) When user is logged is dynamicly green dissepear and bleu appear ;)
shortcode urls redirect [fluent_auth redirect_to="your_URL"] is only for redirect when log in . If they are logged in. it sends you to default wordpress login. So do it dynammicly. And you will have no wurry about it. Maybe it comes later the feature. ;)
I've mentioned this before as well. I hope this will be changed
Gee Adriaansz Did you later find any solution to it
Bryan William unfortunately not
Same issue here. I have the [fluent_auth redirect_to="your_URL"] set on a custom login form and it's throwing the same error. The login redirects and advanced redirect logic isn't working. Any way to upvote this?
This is totally a conflict with the members plugin. I went so far as to uncheck everything in the members settings and the issue persists. As soon as I disabled members, the problem went away and redirects worked perfectly. That may not be a solution for everyone, but sometimes plugins just don't work well together when they have overlapping functionality.
Shahjahan Jewel any news on this?
I work with Elementor and make it dynammicly. When user is logged in= the fluent auth widget dissepear. And i made text field with link to the dashboard of my community. and when user is logged in the text field with link appears. And works fine. For know ;) Also= its a costum log in page.