Hello,
I know this issue, and i cant fix not yet but you can use temporary fix :
If you using only Apache, you can use this code for HTTPS redirecting in .htaccess file :
# Before evereything, redirect HTTPS
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$
https://www.%{HTTP_HOST}/$1 [R=301,L,E=HTTPS:1]
</IfModule>
If you using NGINX + APACHE with reverse proxy etc. you can use this code for HTTPS redirecting in .htaccess file :
# NGINX + APACHE Before evereything, redirect HTTPS
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
# If you want www redirect..
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$
https://www.%{HTTP_HOST}/$1 [R=301,L,E=HTTPS:1]
</IfModule>