Accessing a link with a destination parameter

Created on 16 April 2024, 8 months ago

Problem/Motivation

When a user with a "destination" parameter in their access link logs in, they are redirected to that "destination" directly instead of the intended link.

Steps to reproduce

  1. Logout
  2. Go to a link with a destination parameter, for example: /node/add/article?destination=/
  3. Login as a user with access.
  4. Got redirected to the front page instead of the Article creation page (and then the front page after submission of the form) as intended.

Proposed resolution

URL-encode the given destination parameter, so it is not used directly.

πŸ› Bug report
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada samalander

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

Comments & Activities

Production build 0.71.5 2024