if substring of locale value was anywhere in url, then locale would not be added to route properly. i.e. if the word end was in the url string, the logic would not add locale en to route