Redirect Loop on IE6

88 Views Asked by At

I've been using Jquery address in one of my project and everything works great but when I tried it in IE6, the behavior is very weird.

When I try to visit http://www.local.test.com/?param=123

it loops infinitely: http://www.local.test.com/#/?param=123#/?param=123#/?param=123#/?param=123#/?param=123#/

By the way, here is my jquery initialization

(function($){ 
//JQUERY ADDRESS Initialization
var init = true;
state = window.history.pushState !== undefined;

  $.address.state('/').init(function(event) {
     $('.address').address();
  }).change(function(event) {
      if (state && init) {
          init = false;
          //handleRequest();
    } 
      route();
  });
if (!state) {
}

}(jQuery));
1

There are 1 best solutions below

0
Matt On

Drop IE6 support. I know this doesn't answer your question, but it's the answer to your question.