• Resolved thosga

    (@thosga)


    We are using Gravity Flow to control steps of an approval process. We provide a link in email that is the URL to the page on which the user will enter the approval. The URL has 4 parameters, 3 of which identify the specific page, and the 4th is a WordPress access token which is required for permission to access the page.
    If the user is already logged in, all 4 parameters are retained when the user is directed to the new page.
    If the user is not logged in, Force Login takes them to the correct login page, but then sends the user to the original URL with only 3 of the 4 parameters. The access token is stripped off the URL.
    Is there a reason for this behavior? Is there a way to include the access token?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    I feel like someone else had a similar issue, but I can’t find the topic in this support forum.

    If you look at the redirect_to= query string on the login screen, are all of your approval link parameters (4) included at that stage of the process?

    Force Login redirects to the login screen using the wp_safe_redirect() function, passing the visited URL to the login screen using the wp_login_url() function.

    Maybe one of those WordPress functions is altering your approval URL?

    The wp_safe_redirect() function sanitizes the redirect URL using the wp_sanitize_redirect() WordPress function.

    The wp_login_url() function URL-encodes the visited URL (your approval URL) for the redirect_to= query string on the login screen.

    Let me know if you figure out where your approval URL is getting altered.

    Thanks!

    Plugin Author Kevin Vess

    (@kevinvess)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parameters from original URL stripped after login’ is closed to new replies.