Be able to set redirect destination globaly and by role

Created on 11 December 2024, 14 days ago

Problem/Motivation

Right now from the configuration there is no way to set the redirect destination, you can enable it, but there is no place to set it.

Steps to reproduce

Enable the module and go to `/admin/config/people/autologout_alterable`

Proposed resolution

Add fields for the values

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

1.0

Component

User interface

Created by

πŸ‡ͺπŸ‡ΈSpain edurenye

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

Comments & Activities

  • Issue created by @edurenye
  • πŸ‡ΈπŸ‡ͺSweden andersmosshall

    Good catch. That description was not very clear.

    The include_destination config is specifying if destination query parameter should be included in the redirect url that is used for redirect after logout of user.

    That works as designed but I have in the latest beta release now specified the descriptions for that.

    How ever, you can still define the destination parameter (or even the redirect url) by using the AutologoutProfileAlterEvent.

  • πŸ‡ͺπŸ‡ΈSpain edurenye

    I was thinking of having the option of specifying it through the UI, so there is no need of adding mode code, but I stumbled upon the moment where more than one role can have a redirect, and I'm not sure how to solve that, would be nice to use the redirect of the more permissive role, but that might differ from site to site, so now it makes sense again to use that event... Thanks for pointing me out in that direction.

    Anyway, I upload the patch that I created, where is just tries to use one of the redirects from the roles.

Production build 0.71.5 2024