Incorrect return from \Drupal\settings_tray\Block\BlockEntitySettingTrayForm::getRedirectUrl possible

Created on 19 November 2023, 7 months ago
Updated 20 November 2023, 7 months ago

Problem/Motivation

\Drupal\settings_tray\Block\BlockEntitySettingTrayForm::getRedirectUrl returns an incorrect URL when the $destination already has a leading '\'.

Steps to reproduce

- Log in on a site with settings tray enabled and with sufficient permissions.
- Whilst still on the user page (so /user/[uid]) edit a block through the settings tray
- Submit the form by clicking the button.
- Find yourself on ending up on /[uid] (so without the /user in front)

Proposed resolution

Only prepend leading '\' when the $destination doesn't already have one.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: cannot reproduce

Version

11.0 πŸ”₯

Component
Settings trayΒ  β†’

Last updated 12 days ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @tedbow
Created by

πŸ‡³πŸ‡±Netherlands Spokje

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024