Redirect does not detect when a role is switched unless the cache is cleared or another browser is used

Created on 18 October 2023, about 1 year ago
Updated 15 April 2024, 8 months ago

Steps to reproduce

1. Install module on drupal with php 8.2
2. Add redirects to roles based on page
3. Switch from one role to the other and redirect of new role not detected

🐛 Bug report
Status

Postponed: needs info

Version

3.2

Component

Code

Created by

🇺🇸United States tommyddp

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

Comments & Activities

  • Issue created by @tommyddp
  • Status changed to Postponed: needs info 11 months ago
  • 🇮🇳India samit.310@gmail.com

    Hi @tommyddp,

    I tried it to reproduce it at my end and it is working fine, It looks like you are using any specific web browser, in which some extra caching is enabled, I am using Chrome, Edge and it is working as expected.

    Please specify which we browser you are using.

    Thanks
    Samit K.

  • 🇬🇧United Kingdom noopal

    Hi

    I just tried this with Chrome and php 8.1.

    node/1 has no redirect for anonymous users and has no redirect for authenticated users. I Add a redirect from node/1 to a view page for a specific custom role, such as 'moderators'.

    Anonymous user visits site and sees node/1, they log in as a moderator and are redirect to the view page when they try to visit node/1.
    Moderator logs out and tries to access node/1, but are still redirect to the view page.

    I also, redirect node/1 to a different view page for role 'super-user'.
    Anonymous user visitrs site and can see node/1, they log in as moderator and are redirect to the first view page.
    Admin gives the user role as 'super-user' and removes role 'moderator', how ever node/1 still redirect the user to the original view instead of the new view. The user logs out, but still sees original view instead of node/1.

    Thanks

Production build 0.71.5 2024