1 session_test.module session_test_backdrop_goto_alter(&$path, &$options, &$http_response_code)

Implements hook_backdrop_goto_alter().

Force the redirection to go to a non-secure page after being on a secure page through https.php.


core/modules/simpletest/tests/session_test.module, line 170


function session_test_backdrop_goto_alter(&$path, &$options, &$http_response_code) {
  global $base_insecure_url, $is_https_mock;
  // Alter the redirect to use HTTP when using a mock HTTPS request through
  // https.php because form submissions would otherwise redirect to a
  // non-existent HTTPS site.
  if (!empty($is_https_mock)) {
    $path = $base_insecure_url . '/' . $path;