added support for path-less locales (ones accessed on their domains root directory)
better re-usable logic to handle click events on links