Open spawnash opened 3 years ago
Describe the bug i'm using reverse proxy server to handle ssl and load balance this middleware
Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect
will handle the url with locale prefix, but atline:51
it will parse url from https to http , i guess the reason is this func parse url from load balance request url not client request url ... hi, did you fixed it? I have the same issue
Oh wow this is a significantly older issue and I'm encountering it in a multi-tenancy setup in 2024.
This will always occur when a load balancer sends traffic in HTTP instead of HTTPS. I'm not sure what the fix here would be beyond adding a new flag to this repository's config file that forces HTTPS all the time. Actually, if we configure our ALB to forward traffic to an EC2 using HTTPS, then that should take care of this issue.
Describe the bug i'm using reverse proxy server to handle ssl and load balance this middleware
Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect
will handle the url with locale prefix, but atline:51
it will parse url from https to http , i guess the reason is this func parse url from load balance request url not client request urlTo Reproduce Steps to reproduce the behavior:
$redirection
) which middleware doseExpected behavior return correct url
More info:
Route::groups
:Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect