mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +00:00
Take redirect uri from controller class.
This commit is contained in:
@@ -44,6 +44,8 @@ class Controller extends BaseController
|
|||||||
protected $monthAndDayFormat;
|
protected $monthAndDayFormat;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
protected $monthFormat;
|
protected $monthFormat;
|
||||||
|
/** @var string */
|
||||||
|
protected $redirectUri = '/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller constructor.
|
* Controller constructor.
|
||||||
@@ -116,10 +118,10 @@ class Controller extends BaseController
|
|||||||
{
|
{
|
||||||
$uri = strval(session($identifier));
|
$uri = strval(session($identifier));
|
||||||
if (!(strpos($identifier, 'delete') === false) && !(strpos($uri, '/show/') === false)) {
|
if (!(strpos($identifier, 'delete') === false) && !(strpos($uri, '/show/') === false)) {
|
||||||
$uri = route('index');
|
$uri = $this->redirectUri;
|
||||||
}
|
}
|
||||||
if (!(strpos($uri, 'jscript') === false)) {
|
if (!(strpos($uri, 'jscript') === false)) {
|
||||||
$uri = route('index');
|
$uri = $this->redirectUri;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $uri;
|
return $uri;
|
||||||
|
Reference in New Issue
Block a user