[CHORE] Implement RedirectURIs
Some checks failed
S3 Repo Backup / s3-repo-backup (push) Failing after 1s
Deploy Edge / deploy-edge (push) Failing after 8s

This commit is contained in:
Dunemask 2024-08-24 16:51:30 -06:00
parent 0fc5f05b6a
commit fdb19be2ef
12 changed files with 91 additions and 33 deletions

View file

@ -21,6 +21,8 @@ export function useLinkNav() {
}
export function useAutoRedirect() {
const nav = useLinkNav();
return () => nav(Links.AutoRedirect);
const search = window.location.search;
const nav = useNavigate();
const redirectLink = `${rootLink(Links.AutoRedirect)}${search}`;
return () => nav(redirectLink);
}