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