router. Page to an unauthorized user for a few milliseconds before redirecting.Page route, it won't show the Page to user for a few milliseconds before redirecting, but it can run the preload at any state of my app, which will break all redirects and always redirect to /login?redirect=/profile instead of the ?redirect parameter:useNavigate, but the code needs to be run on the client in this case. However, I need to perform this check on the server first.event?.router?.previousUrl from getRequestEvent() in redirectUnauthenticated function, but it's always returns undefied.