This commit is contained in:
James Cole
2019-12-22 06:23:13 +01:00
parent 2a110185a1
commit a4d3dba662

View File

@@ -177,7 +177,7 @@ trait UserNavigation
$return = app('url')->previous();
/** @var ViewErrorBag $errors */
$errors = session()->get('errors');
$forbidden = ['json'];
$forbidden = ['json', 'debug'];
if ((null === $errors || (null !== $errors && 0 === $errors->count())) && !Str::contains($return, $forbidden)) {
Log::debug(sprintf('Saving URL %s under key %s', $return, $identifier));
session()->put($identifier, $return);