mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +00:00
Fix #2912
This commit is contained in:
@@ -177,7 +177,7 @@ trait UserNavigation
|
|||||||
$return = app('url')->previous();
|
$return = app('url')->previous();
|
||||||
/** @var ViewErrorBag $errors */
|
/** @var ViewErrorBag $errors */
|
||||||
$errors = session()->get('errors');
|
$errors = session()->get('errors');
|
||||||
$forbidden = ['json'];
|
$forbidden = ['json', 'debug'];
|
||||||
if ((null === $errors || (null !== $errors && 0 === $errors->count())) && !Str::contains($return, $forbidden)) {
|
if ((null === $errors || (null !== $errors && 0 === $errors->count())) && !Str::contains($return, $forbidden)) {
|
||||||
Log::debug(sprintf('Saving URL %s under key %s', $return, $identifier));
|
Log::debug(sprintf('Saving URL %s under key %s', $return, $identifier));
|
||||||
session()->put($identifier, $return);
|
session()->put($identifier, $return);
|
||||||
|
Reference in New Issue
Block a user