]> BookStack Code Mirror - bookstack/blobdiff - app/Exceptions/Handler.php
Fixed some cross browser flexbox popup issues
[bookstack] / app / Exceptions / Handler.php
index 14d553ed0bb359b200dfc91a95bdc05ff92501ba..40dd1ec105d3c150a6579ffef095001f3e5a959a 100644 (file)
@@ -48,8 +48,8 @@ class Handler extends ExceptionHandler
         // Handle notify exceptions which will redirect to the
         // specified location then show a notification message.
         if ($e instanceof NotifyException) {
-            \Session::flash('error', $e->message);
-            return response()->redirectTo($e->redirectLocation);
+            session()->flash('error', $e->message);
+            return redirect($e->redirectLocation);
         }
 
         // Handle pretty exceptions which will show a friendly application-fitting page