mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for base redirect
This commit is contained in:
parent
4670c06b7e
commit
a8362762cf
@ -1033,7 +1033,7 @@ class BaseController extends Controller
|
||||
if ((bool) $this->checkAppSetup() !== false && $account = Account::first()) {
|
||||
|
||||
//always redirect invoicing.co to invoicing.co
|
||||
if(Ninja::isHosted() && (request()->getSchemeAndHttpHost() != 'https://invoicing.co'))
|
||||
if(Ninja::isHosted() && !in_array(request()->getSchemeAndHttpHost(), ['https://staging.invoicing.co', 'https://invoicing.co']))
|
||||
return redirect()->secure('https://invoicing.co');
|
||||
|
||||
if (config('ninja.require_https') && ! request()->isSecure()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user