CoursePress Pro, Virtual Pages & HTTPS

After installing a SSL certificate to I discovered that the Virtual Pages were not displaying, instead ther were returning a 404 Page Not Found error.

I investigated and found a number of other support threads where this issue had been raised but no solution was available in any of these threads:

I did a quick investigation and have been able to find the issue. In coursepress/coursepress.php line 5296 needs to be changed as follows:

$full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

Change to:

$full_url = ( is_ssl() ) ? "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" : "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

Could you please look to implement this change in the next release? Thank you.