browserstate/history.js — pull request #366 by kontur (2013-11-29 14:00:37+00:00)
Title: attempted fix for issue #339 - no more including host in hash on IE 8 and 9

In Internet Explorer IE8 and IE9 there seems to be a problem that includes the host in the hash.

http://www.example.com/?page=foobar -> http://www.example.com/#http://www.exmaple.com?page=foobar&_suid=123456789
but
http://www.example.com/directory/?page=foobar -> http://www.example.com/directory/#?page=foobar&_suid=123456789

I noticed that in History.getShortUrl the baseUrl reports "http://www.example.com/" with a trailing slash. Consequently, shortUrl.replace, does not match anything because of the superfluous "/" at the end of baseUrl. Removing the trailing slash fixes the problem, as shortUrl gets returned correctly.

I only applied this to the uncompressed html4+html5 bundle for jquery as I have not used the other library integrations.