Use destination based redirect instead of $_SERVER['HTTP_REFERER']

Created on 7 August 2025, 18 days ago

Problem/Motivation

In some cases, because of security, we need to set 'Referrer-Policy: no-referrer'

header('Referrer-Policy: no-referrer');

In such cases, this module always redirects to front page.

Steps to reproduce

Add header('Referrer-Policy: no-referrer');
Try to clear cache

Proposed resolution

Add current path as destination path to url and redirect to that path TrustedRedirectResponse

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.12

Component

Code

Created by

🇮🇳India vipul tulse

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

Comments & Activities

Production build 0.71.5 2024