Destination parameter forbids user to be redirected for authentication

Created on 26 June 2018, almost 7 years ago
Updated 2 March 2025, about 2 months ago

In the latest dev version, I can't authenticate users with destination parameter.
It redirects to the page but never authenticated with the social network.

I've tried social_auth_facebook and social_auth_google, both can only be authenticated successfully without destination parameter.

๐Ÿ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡น๐Ÿ‡ผTaiwan amourow

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

Comments & Activities

Not all content is available!

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

  • ๐Ÿ‡จ๐Ÿ‡ดColombia Freddy Rodriguez Bogotรก

    The following site builder solution is provided for reference in case you need custom links.

    For example, to create a link for comments:

    1- Install the modules Twig Tweak and Filter Twig.
    2- Create a new text format for Twig variables.
    3- Create a block containing the following code:
    <a href="/user/login/google/?destination={{ path('<current>') ~ '#comment-form' }}">Comment</a>

Production build 0.71.5 2024