Problem/Motivation

It is not always desired to pass the destination to the redirected route (for instance when using SSO)

Steps to reproduce

Set the redirect path to a custom landing page, the destination is used to redirect users back to the originating page.

Proposed resolution

Add an option to omit the destination in the url query argument

Issue fork autologout-3195164

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

thierry.beeckmans created an issue. See original summary.

thierry.beeckmans’s picture

Added config setting, form element and check in autologout.module

saso.sotlar’s picture

Fixed patch so it applies to latest version of module.

gombi’s picture

Status: Active » Needs work

gombi’s picture

Status: Needs work » Needs review

I've added the missing schema information for the new setting, which was causing the tests to fail.

ngkoutsaik’s picture

Status: Needs review » Reviewed & tested by the community

I have reviewed this ticket and the provided code. The patch works and allows you to ignore the destination parameter if you wish.

I am marking this as tested.

nginex made their first commit to this issue’s fork.

nginex’s picture

I did rebase against the latest module changes in 8.x-1.x, now MR can be applied

DeaOm made their first commit to this issue’s fork.

deaom’s picture

Status: Reviewed & tested by the community » Needs review

Rebased it again and added the update hook that sets the include destination to true. As existing users will not yet have that option and with updated with this change, it will default to false, which we don't want.

admirlju’s picture

Status: Needs review » Reviewed & tested by the community

The changes work fine. The error here fails because of a core issue #3192893: [META] Serialization issues in Migration tests. Since it works moving to RTBC.

admirlju’s picture

Status: Reviewed & tested by the community » Needs work

So some other tests are also failing. Checking out what is going on.

admirlju’s picture

Status: Needs work » Postponed

This works. Before RTBC, I think it would be good to write some tests, but we should wait for #3388601: Use GitLab CI for testing to be fixed and merged, for now postponing.

admirlju’s picture

Status: Postponed » Needs review

Had some hiccups there with automated tests, now if something changes in the future, we'll make sure not to break this functionality. Since we moved everything to the issue fork and testing is now done with githubCI, hiding the patch files. Needs review.

deaom’s picture

Status: Needs review » Reviewed & tested by the community

The test added is passing, so see no issue with this being merged.

boshtian made their first commit to this issue’s fork.

  • boshtian committed a0af4ee6 on 8.x-1.x authored by gombi
    Issue #3195164 by admirlju, DeaOm, thierry.beeckmans, gombi, saso.sotlar...
boshtian’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.