I'm still having an issue using re-direction in my PacketFence captive portal with Firefox v3.6.13. On my registration release, FF v3.6.13 times out when trying to automatically load the redirection URL. If you hit refresh after it times out, the page will load. IE automatically loads the redirection URL ok. I currently have my captive portal setup to present text to the user after the timer expires, but I would prefer to use the re-direction feature.
Here is what I've tried so far to fix this re-direction issue, but this did not fix it. Use "window.location=destination_url;" instead of " top.location.href=destination_url;" in lib/pf/web.pm. Would anyone have any other ideas I could try? -John Sarmiento -----Original Message----- From: Sarmiento, John Sent: Tuesday, May 11, 2010 10:16 AM To: [email protected] Subject: RE: [Packetfence-users] captive portal re-direction not workingproperly with Firefox 3.6.3 >Try to change the redirection code (in lib/pf/web.pm) from: Still does not work after changing the code you suggested. >You could present text saying that the user needs to restart his >browser. This could be accomplished by modifying the javascript >mentioned above to change text in the page. Would you have sample code for this? Thanks! -John Sarmiento -----Original Message----- From: Olivier Bilodeau [mailto:[email protected]] Sent: Monday, May 10, 2010 7:21 AM To: [email protected] Subject: Re: [Packetfence-users] captive portal re-direction not workingproperly with Firefox 3.6.3 Good day John, Unfortunately, I have no access to our lab right now so I can only suggest things to try not fixes. Sarmiento, John wrote: > I'm having an issue using re-direction in my PacketFence captive portal with Firefox v3.6.3. On my registration release, FF v3.6.3 times out when trying to automatically load the redirection URL. IE and previous versions of FF automatically loads the redirection URL ok. > I quickly googled and found no evidence that they changed their redirection policy but they could have, you never know.. Try to change the redirection code (in lib/pf/web.pm) from: var action = function() { hidebar(); top.location.href=destination_url; } EOT To: var action = function() { hidebar(); window.location=destination_url; } EOT However, I am not sure it'll work as I said, I can't test it but I would try it and put things back if it doesn't work. > Are there any alternatives to using redirection on registration release to avoid my issue with FF 3.6.3? > You could present text saying that the user needs to restart his browser. This could be accomplished by modifying the javascript mentioned above to change text in the page. I'm sorry I can't be more precise. Have a nice day! -- Olivier Bilodeau [email protected] :: +1.514.447.4918 *115 :: www.inverse.ca Inverse inc. :: Leaders behind SOGo (www.scalableogo.org) and PacketFence (www.packetfence.org) ------------------------------------------------------------------------ ------ _______________________________________________ Packetfence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Packetfence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
