Angular SDK persist URL path in state


I’m using the Auth0 Angular SDK version 1.5.1.

When I’m logged into my application in an incognito tab and then refresh the page, the Auth0 SDK performs a login redirect and I lose the full path of the URL that was refreshed (and therefore my app redirect me to my default route). I think I’m supposed to save the details of the URL in the state parameter of the login redirect but I can’t work out how to do this using the Angular SDK. Are there any examples or documentation for how to achieve this?

Thank you