Redirect to previous page after login Drupal 8

Redirect to previous page after login Drupal 8

4 posts / 0 new
Last post
Fujale.Shaik@pennywisesolutions.in's picture
Fujale.Shaik
Points: 0
Redirect to previous page after login Drupal 8

Hi everyone,

I want the user redirect to previous page(from where the user redirects to the login scree) after login in drupal 8.

Could you please help me?

Status: 
Resolved
dmyburgh's picture
david.myburgh
Points: 99

You'll need custom code. Take a look here: https://www.drupal.org/node/1569672#comment-11206899. Just change hook_user_logout to [your_module_name]_user_login.

Fujale.Shaik@pennywisesolutions.in's picture
Fujale.Shaik
Points: 0

Thanks it worked for me.

dmyburgh's picture
david.myburgh
Points: 99

Awesome!

Status Change: 
Resolved
Topic locked