Notifications
Clear all

How to make /sign-in redirect to the referring page.

1 Posts
1 Users
0 Reactions
30 Views
memphisguru
Posts: 10
Topic starter
(@memphisguru)
Eminent Member
Joined: 7 years ago

Since I'm using the wpForo login in place of the Wordpress one, any time a user logs in they end up on the forum or there profile, no matter where the /sign-in link was located.

So a user gets a link on a protected page like "you must sign in to do this", linked to the  /sign-in page and instead of going back to the page they were trying to interact with they end up in the forum.

Confusing, like what just happened, this isn't the page I wanted.

Can a link be crafted using redirect?

/sign-in/?redirect_to=[the page you came from]

Thanks