How do I pass url query from login back to url?

Hi @noelt.dolan,

Thanks for posting your question and sorry for the late reply.

You can send custom query parameters when performing an /authorize request by using AuthorizationParameters documented here for the NextJs v4.0.3, that should like this:

Additionally you can also check out this Knowledge Article about Passing Additional Parameter to the Universal Login URL.

I hope this help your use case, but others as well.
Thanks,
Remus