Router.AppRouter override for pre-routing hooks