Ok, it might work for city and region, but will fail for country as `country` is in each links for search by city, region and country and also it will fail if user submitted some other data like `email` or `nickname` that contains `city` or `region`. Current XPATH selector is good, but not as good as it can be. The only solution that I see is to add some classNames or IDs to markup of location block.

But if you insist, I for sure can change selectors for CSS selectors