Login redirect to previous page
-
Hello!
There is a link to wp-login.php in header, I am trying to redirect login page to the previous page using wp_login_url( get_permalink()), but when I log in on index or category page, I’m redirected to the first post of the category not the category itself.
What I want:
Category page > login > category pageWhat I have now:
Category page > login > first post of the categoryHow should I fix this?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Login redirect to previous page’ is closed to new replies.