jQuery mobile - base href and lots of slashes

jQuery mobile - base href and lots of slashes

We have a site using jQuery mobile. Our server prepends a localization prefix to all the intra-site
links that are on the page.

e.g.

 link to news    / en / news
 link to calendar  / en / calendar

The site seems to be working fine, but after loading several pages, the <base> tag has an
href attribute that doesn't look right.

 href = "http://www.somecompany.com/ en / / en / news/ newsId / ?someParam=foo "


This doesn't seem to match up with the jQM docs - can someone explain if this is correct or if
 something is amiss on our site?