File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ Let's set it up. Inside your controller:
22
22
/**
23
23
* @return void
24
24
*/
25
- public function initialize() {
25
+ public function initialize(): void {
26
26
parent::initialize();
27
- $this->loadComponent('RefererRedirect', [
27
+ $this->loadComponent('Tools. RefererRedirect', [
28
28
'actions' => ['edit'],
29
29
]);
30
30
}
@@ -45,6 +45,7 @@ From your paginated and filtered index page you can now point to the edit page l
45
45
46
46
After successful save it will then redirect to exactly the current URL including all filter query strings, page, sort order etc.
47
47
48
+ You could also make this a RefererRedirect helper and handle that URL building internally.
48
49
49
50
## When not to use
50
51
Make sure you are not using such approaches when linking to an action that removes an entity from the ` view ` /` edit ` action of that entity.
You can’t perform that action at this time.
0 commit comments