change link href if there is locale in url path (client side)