1 Reply Latest reply: Mar 22, 2013 8:46 AM by rod.lehman RSS

    Chrome CQ5 Redirect Loop

    giang.phan Community Member

      If I access a remote CQ5 instance in Chrome with a fresh wipe of all my cookies say at:

      http://10.0.1.1:7054

       

      There is a client side JavaScript redirect to the login page at:

      http://10.0.1.1:7054/libs/cq/core/login.html

       

      However, sometimes after a certain amount of time (probably cookie timeout), if I go back to:

      http://10.0.1.1:7054

       

      The page will redirect me to http://10.0.1.1:7054/libs/cq/core/login.html with a resource parameter that is equal to the window.location.hash. This can be seen in Chrome using the developer tools:

       

      var u="/libs/cq/core/content/login.html?resource=%2F"; 
      if ( window.location.hash) {u = u + window.location.hash;} 
                document.location = u;
      

       

      The problem is when the browser goes to that page, it will return an HTTP 302 redirect back to "/" which is: http://10.0.1.1:7054/.

      You can probably see the problem here and it gets stuck in a redirect loop which does not go away until I nuke my Chrome cookies.

       

      We are currently using CQ 5.4, and was wondering if this bug has been seen before? Thanks.