refactored getURLFromRouteNameTranslated function