Lets say i've got the following url;
http://www.domain.com/en-US/assortment/en-US/category/page.aspx?sub=GROUP7
As you can see I have two language layers in the url from which I want to remove ONLY the second one. So I expect the url to be like this.
http://www.domain.com/en-US/assortment/category/page.aspx?sub=GROUP7
Due to technical limitations I don't have any other ways to modify the url. Can this be achieved with jQuery or Javascript? If yes, how?