Destination is lost after user logs in

Created on 26 January 2023, almost 2 years ago
Updated 19 May 2024, 6 months ago

Problem/Motivation

If the user clicks on/users a link for a page that they don't have access too unless they login, they are presented the login page, then the terms of service (legal) page, but then they are rerouted back to the home page.

So, ultimately, a user clicks on a link like https://example.com/this/page, but then, after logging in, is sent to https://example.com

Steps to reproduce

Install the legal module.
In the configuration, under "Display Style Login", set it to "HTML Text".
Attempt to access a page that you would need to be logged in for, login, and see that you're sent back to the home page

Proposed resolution

Ideally, when the site redirects them to the terms of service (legal) agreement page, it preserves the originally intended path through with the destination query parameter

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Postponed: needs info

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States UnsettlingTrend

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @UnsettlingTrend
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    I agree this should be fixed and is a bug.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Several issues seem to document this, I think we should close all but one and sum up things there?

  • Issue was unassigned.
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • Status changed to Postponed: needs info 6 months ago
  • πŸ‡¬πŸ‡§United Kingdom robert castelo

    The Drupal out of the box behaviour is that when a user visits a page and gets a 404 if they click on the login link they go to the login page and submit their details, they are then redirected to their account page.

    @UnsettlingTrend is your site redirecting back to the page that initially gave a 404? How are you doing that?

    Note: if using the User Login block Legal will redirect back to the page that initially gave a 404.

Production build 0.71.5 2024