laravel-localization
laravel-localization copied to clipboard
Middleware\LocaleSessionRedirect can't handle request url from proxy server , cause https to http
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 at line: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
To Reproduce Steps to reproduce the behavior:
- i'm using valet share to reproduce
- visit a route without locale prefix
- die dump the handled url(
$redirection
) which middleware dose - See error
Expected behavior return correct url
More info:
- Version of Laravel :5.8
- Version of the Laravel-localization package:1.3.2
- Which middleware is used in
Route::groups
:Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect
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