Pass the destination as a url parameter

Created on 31 October 2022, about 2 years ago
Updated 29 June 2024, 6 months ago

Problem/Motivation

When an auto link is expired, visiting that link shows a 403 page.

I would like to be able to have that link still redirect the visitor to the destination, even if it doesn't log them in any longer.

Proposed resolution

Don't store the destination path in the db and instead pass it along with in url

Something like:
https://example.com/autologinurl/2364/1LcLHAvQVvfz0zs2Q988UnfN08fMeS4OlWc7xVV5gUE?destination=/node/1234

If that hash is expired, it would just redirect the user without logging them in. Perhaps showing a message indicating they weren't logged in.

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Pipeline finished with Failed
    6 months ago
    Total: 174s
    #211634
  • Pipeline finished with Failed
    6 months ago
    Total: 182s
    #211639
  • Pipeline finished with Failed
    6 months ago
    Total: 172s
    #211645
  • Pipeline finished with Success
    6 months ago
    Total: 181s
    #211650
  • Status changed to Needs review 6 months ago
  • πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

    I created this issue several years ago. I don't think what I proposed back then is actually the best behavior any longer.

    It's possible the destination url could throw a 403 as well, depending if the user was logged in or not. so just redirecting to the destination may not be optimal.

    if its expired, maybe redirect to the home page with a message, or a dedicated page alerting the user that the link has expired may be best.

    I'm also not the maintainer of this, so I can't make that call, but that's at least how I would like it to work.

Production build 0.71.5 2024