Open GoogleCodeExporter opened 9 years ago
after some investigation, this is caused by addition of bmb=1 to the URL in
window.location.hash += parameter;.
This adds #/bmb=1 to the URL which causes a page swipe.
Original comment by bigmas...@gmail.com
on 3 Nov 2011 at 4:19
As a workaround, I use the HTML5 history object to adjust the URL without a
page refresh, and without using the hash tag. This seems to work for me. See
below for code:
var parameter = 'bmb=1';
bubble.hasHashParameter = function () {
return window.location.search.indexOf(parameter) != -1;
};
bubble.setHashParameter = function () {
if (!this.hasHashParameter()) {
if (window.location.search.indexOf('?') == -1) {
window.history.replaceState('Object', 'Title', window.location + '?' + parameter);
} else {
window.history.replaceState('Object', 'Title', window.location + '&' + parameter);
}
}
};
Original comment by AndrewKo...@gmail.com
on 28 Jul 2012 at 3:39
Original issue reported on code.google.com by
bigmas...@gmail.com
on 3 Nov 2011 at 4:15