Login and coming back to same URL

Hi - I have an SPA app written in Vue.

We use Auth0 for login.

I would like to have the user end up on the same page (URL) as they are one when they initiate the login. Currently the user is getting redirected to the “allowed callback URLs”.

Do you have any documentation on how to achieve that?

Kind regards
Thomas

Can you describe a bit more specific situation? I mean some example would be perfect

Yes of course.

If the user is on my current Vue site on the url:

<mysite.com>/choose-payment-method

Here he will suddenly decide to click the login button, because he wants access to more payment options. Now - after he logs in, I would like him to end up at the same URL.

Currently he ends up at the “allowed callback URL” which is <mysite.com>

Kind regards
Thomas