Retain query params upon successful authentication

What is the name of the domain?

n/a

What is the issue you’re encountering

Query params are stripped upon successful authentication with Cloudflare Access. This makes it very difficult to properly direct the authentication flow.

Configuration:
I am mainly using Access as a way to authenticate users. I have “protected” the routes /auth and /cgi-bin/access/* and I can correctly get the users’ CF-authorization JWT. But upon successful authentication on /auth, the query params in the original request are lost

Might want to check and if not already, create a topic in the Feature Request Submitting & Feedback category.

As far as I tried, currently we cannot add (custom) ports as well, therefrom we can always bookmark the true URL in our Web browser, and once ZT Access page is passed, click the bookmarked URL and we’re good to go once authenticated via OTP.