#Route Check - Redirect

4 messages · Page 1 of 1 (latest)

earnest mist
#

Hi all.

Have to ask here - since I think I'm missing it in the docs...

I wanted to ask if I can somehow check if the trigerred route was redirected to or was it a direct URL input?

I would love to make sure that the route was redirected to and not manually triggered.

Cheers!

smoky tinsel
#

out of interest, why would that make a difference?

#

and what happens if, after a redirect, the user refreshes the page?

earnest mist
#

The page would check if the page was redirected to. If not I send the user to another page.

I’m assuming now that the router state is not preserved when reloading the page.

If state is preserved I would also add a state to check if the action was alredy done.

If not I would keep them on the page else away they go.