*

katalin2k

  • **
  • 20 posts
Redirect to previous page after login
« on: November 17, 2024, 09:12:22 PM »
Someone should build a plugin that redirects to previous page after user logs in when he clicks to add new listing, adds new comment, etc.
Right now it redirects to account page and it’s useful.

*

MB Themes

Re: Redirect to previous page after login
« Reply #1 on: November 19, 2024, 09:48:55 PM »
I think it's trying to redirect to previous page, but previous page is login page.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

katalin2k

  • **
  • 20 posts
Re: Redirect to previous page after login
« Reply #2 on: November 19, 2024, 11:11:38 PM »
I think it's trying to redirect to previous page, but previous page is login page.
Previous page meaning the page you are coming from, before going to login page. For example you click to add a new listing, it takes you  to login page and after log in it takes you to my account. This has no logic whatsoever, it should redirect to the page you were initially going to.

*

MB Themes

Re: Redirect to previous page after login
« Reply #3 on: Yesterday at 01:19:29 PM »
That's not previous page already and it's not possible to provide this page to login controller as it's not http referrer.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

katalin2k

  • **
  • 20 posts
Re: Redirect to previous page after login
« Reply #4 on: Yesterday at 03:28:57 PM »
That's not previous page already and it's not possible to provide this page to login controller as it's not http referrer.
It should be saved in a cookie or session because this is a must. Think about it, you click to add a listing, it redirects to login page and after you log in it redirects to account page instead of the page you originally went from.