[SOLVED] Not found being presented for working route
I am following the Authenticated Routes docs. I've set up a redirect to occur when the user is not logged in. I apply a
redirect search param just like the docs do.
But I am experiencing weird behavior where I can reach a protected route through normal navigation. But refreshing the page (triggering auth again) sends me to the not found component.
I don't perform any other redirect other than what the docs have provided. Why would this happen and how can I fix it?
The protected route:
The login route redirecting back to the page when auth is found.
1 Reply
flat-fuchsiaOP•2y ago
Oh my gosh... I wasn't grabbing the location variable from the parameters of the
beforeLoad.... I thought it was the window.location variable which is available globally as location
Which makes sense because I'm sure there's some behind the scenes route masking going on that the window.location variable doesn't account for.............. Death. It's working ⭐