Small fixes for laravel 5.4

This commit is contained in:
James Cole
2017-02-05 18:44:37 +01:00
parent f863c01a1d
commit 3a7faa7368
3 changed files with 2 additions and 4 deletions

View File

@@ -83,12 +83,9 @@ class Controller extends BaseController
protected function getPreviousUri(string $identifier): string
{
$uri = strval(session($identifier));
// 1 (see above):
if (!(strpos($identifier, 'delete') === false) && !(strpos($uri, '/show/') === false)) {
$uri = route('index');
}
// 2 (see above)
if (!(strpos($uri, 'javascript') === false)) {
$uri = route('index');
}