refactored findTranslatedRouteByUrl function