LegalLogin redirect should be based on user route, not a url string

Created on 22 April 2021, over 3 years ago
Updated 30 May 2024, 4 months ago

Problem/Motivation

LegalLogin::submitForm() currently redirects straight to /user/$uid. This will break if there is an alternate url pattern set up for users.

Steps to reproduce

Set up alternative url pattern for users, such as with https://www.drupal.org/project/rename_admin_paths β†’ . Accepting legal's terms will redirect to /user/xxxx which will result in a page not found.

Proposed resolution

Generate the redirectUrl based on the user route.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mrweiner

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024