mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
fixes for redirect not forcing
This commit is contained in:
parent
905d1a3f85
commit
8c178cd99e
@ -715,10 +715,8 @@ class SubscriptionService
|
|||||||
nlog($response);
|
nlog($response);
|
||||||
|
|
||||||
if ($credit) {
|
if ($credit) {
|
||||||
// return $this->handleRedirect('/client/credits/'.$credit->hashed_id);
|
|
||||||
return '/client/credits/'.$credit->hashed_id;
|
return '/client/credits/'.$credit->hashed_id;
|
||||||
} else {
|
} else {
|
||||||
// return $this->handleRedirect('/client/credits');
|
|
||||||
return '/client/credits';
|
return '/client/credits';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1494,10 +1492,10 @@ class SubscriptionService
|
|||||||
private function handleRedirect($default_redirect)
|
private function handleRedirect($default_redirect)
|
||||||
{
|
{
|
||||||
if (array_key_exists('return_url', $this->subscription->webhook_configuration) && strlen($this->subscription->webhook_configuration['return_url']) >=1) {
|
if (array_key_exists('return_url', $this->subscription->webhook_configuration) && strlen($this->subscription->webhook_configuration['return_url']) >=1) {
|
||||||
return redirect($this->subscription->webhook_configuration['return_url']);
|
return redirect($this->subscription->webhook_configuration['return_url'])->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect($default_redirect);
|
return redirect($default_redirect)->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user