Might be late and a non-issue for you but anyone else watching: You can do a router.replace and a useEffect to validate if someone else tries to access froma bookmarked link