Download & Extend

302 redirect problem with lightbox2 pop-in login

Project:Lightbox2
Version:6.x-1.9
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Not sure which module is responsible but there is a conflict between lightbox2 and securepages.

Problem occurs when lightbox2 "Enable login support" is enabled and securepages is set to secure "/user/login".

When clicking on a Login link the lightbox window appears and is empty. Closing the window and clicking the Login link again correctly loads lightbox with the login form. This affects all browsers.

I think a 302 redirect is causing problems. When the unsecured login page is requested http://www.mydomain.com/user/login securepages send a 302 redirect to https://www.mydomain.com/user/login

Does Jquery load() understand 302 redirect with Location Response? I thought a 302 is handled transparently by the browser.

Anyone have ideas on how to fix?

Comments

#1

I'm having a similar issue but with the contact form. It seems that from any https:// page the modal pops-up but is blank. It works from all the pages that are not on SSL. Any ideas about how I might fix this?

See the attached screen capture for an example.

AttachmentSize
blankcontactform.jpg 292.57 KB

#2

+1

#3

I know this is an old issue, but I've ran into it in a recent build. I was able to work around the problem by adding:

user/login/lightbox2
user/login/lightbox2/*

To SecurePage's ignore list.

nobody click here