So, we fixed the bug in your “swift-framework/core/sf-functions.php” which lead to a redirect loop with ssl enabled sites and maintenance mode. Please consider integrating this fix in a future release.
🙂
/* GET CURRENT PAGE URL
================================================== */
function sf_current_page_url() {
$pageURL = 'http';
$defaultPort = "80";
if ( isset( $_SERVER["HTTPS"] ) ) {
if ( $_SERVER["HTTPS"] == "on" ) {
$pageURL .= "s";
$defaultPort = "443";
}
}
$pageURL .= "://";
if ( $_SERVER["SERVER_PORT"] != $defaultPort ) {
$pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
}
return $pageURL;
}