A person who signs in is returned to the page they were on when they used the login link
User story
Given that I am viewing a page on the site,
when I decide to sign in
I want to be returned to the page i was on afterward so that i can continue with what i was doing.
Background
This is a very common user-friendly feature for websites that is not done out-of-the-box by Drupal, but can be done by Drutopia!
Proposed solution
Option A
https://www.drupal.org/project/login_return_page
- No configuration needed.
- Allows menu blocks to still be cached per role or per user (not per page).
- Requires JavaScript.
- Does not currently work for registering users, and might not ever (robustly) work for registering users (though the dream there would take other work anyway: #115)
Option B
https://www.drupal.org/project/login_destination + https://www.drupal.org/project/blocache – configured like this
- Will work if the visitor has JavaScript disabled (very rare).
- Will work for registration.
- Requires that block caching of blocks with login links must be changed to have a different cache for every page
Remaining work
Choose a solution and add it, probably as a standalone Drutopia module that can be turned off.
Edited by benjamin melançon