How to use fragment and appState in RedirectLoginOptions

What I want is to redirect to the user entered url. Is this possible to get uri back If I pass that in either fragment or appState ? If so how ?

Else is there any better option available ?

Thanks for the help

Hi @hnipun,

Welcome to the Community! Have you seen this page:

Let me know if this helps!
Dan

Thanks. But I dont understand how to use that with react SDK. For ex with loginWithRedirect method. Could you please provide and example ? Thanks.

True, It’s difficult to understand how it is being used with react-sdk. I don’t see these options in GitHub document too.

if you pass information in a PATH_INFO component of the URL : currently this usage has only been allowed in the hostname part, but there rawurlencode() must not be used to encode the [query] element of a parsed .