patchRoutesOnNavigation