Renamed detectUri to detectRoute