Add Current Page URL to SSO Redirect URL for Redirects

When a user wants to add a comment but isn't logged in, the login popup opens. The user taps the SSO login button.

Problem: The user logs in via SSO, but the SSO provider (my app) doesn't know where to redirect the user back to.

If ProductLift added a query parameter to the SSO redirect URL signifying the page the user was on before trying to log in, the SSO provider could redirect the user back to the page. It would be ideal if I could set the parameter location in the SSO redirect URL field. Example:

SSO redirect URL: https://my-app.com/login?redirect=https%3A%2F%2Fmy-app.com%2Fproductlift-sso%3Fredirect%3D{NEW_REDIRECT_PARAMETER}

Note: I can add {NEW_REDIRECT_PARAMETER} anywhere in the URL, which should be replaced with the user's current location in ProductLift.