I'm trying to get secure pages working on drupal for facebook canvas.

I got it close to working by editing fb_protocol in fb.module.

But when I'm on an unsecured page and go to a url that should be secure it doesn't switch to https, but the links from that page are https. So it doesn't seem to fully force the switch to secure. Any suggestions on how to force it to https?

function fb_protocol() {
  $path = isset($_GET['q']) ? $_GET['q'] : '';

  if(securepages_match($path)){
	  return 'https';
	  securepages_goto(TRUE);
  }else{
	  return 'http';
	  securepages_goto(FALSE);
  }
    
  if (securepages_is_secure()) {
    $base_url = securepages_baseurl();
  }
}

Comments

astonvictor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks