context : I have a drupal website that is only accessible to logged in users.
I send this link to my client: mywebsite/path/to/mypage
My client click on the link, it redirects him to the loggin page and then redirect to mywebsite/path/to/mypage
I send this link to my client: mywebsite/path/to/mypage
My client click on it, he get redirected to the loggin page and then gets redirected to the homepage mywebsite
My guess is that it's coming from .htaccess
but I haven't touched it.
I tried a fresh new install of both drupal and apache and got the exact same behavior
This module allows you to choose a redirect path after login: https://www.drupal.org/project/redirect_after_login
OR
you can define a query parameters?destination in your url. Drupal use it to redirect to the page of your choice, example: mywebsite/path/to/mypage?destination=/path/to/mypage
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.