Route hook should occur before the route happens, to be able to stop it from the hook.