|
20 | 20 | // Redirect GET routes without filterKey |
21 | 21 | Route::get('s-dashboard/{dashboardKey}', fn ($entityKey) => redirect( |
22 | 22 | route('code16.sharp.dashboard', [ |
23 | | - sharp()->context()->globalFilterUrlSegmentValue(), |
24 | | - $entityKey] |
25 | | - ) |
| 23 | + 'filterKey' => sharp()->context()->globalFilterUrlSegmentValue(), |
| 24 | + 'entityKey' => $entityKey, |
| 25 | + ]) |
26 | 26 | )); |
27 | 27 | Route::get('s-list/{entityKey}', fn ($entityKey) => redirect( |
28 | 28 | route('code16.sharp.list', [ |
29 | | - sharp()->context()->globalFilterUrlSegmentValue(), |
30 | | - $entityKey, |
| 29 | + 'filterKey' => sharp()->context()->globalFilterUrlSegmentValue(), |
| 30 | + 'entityKey' => $entityKey, |
31 | 31 | ]) |
32 | 32 | )); |
33 | 33 | Route::get('s-show/{entityKey}', fn ($entityKey) => redirect( |
34 | 34 | route('code16.sharp.single-show', [ |
35 | | - sharp()->context()->globalFilterUrlSegmentValue(), |
36 | | - $entityKey, |
| 35 | + 'filterKey' => sharp()->context()->globalFilterUrlSegmentValue(), |
| 36 | + 'entityKey' => $entityKey, |
37 | 37 | ]) |
38 | 38 | )); |
39 | 39 |
|
|
64 | 64 | // Redirect GET routes without filterKey |
65 | 65 | Route::get('{parentUri}/s-show/{entityKey}/{instanceId}', fn ($parentUri, $entityKey, $instanceId) => redirect( |
66 | 66 | route('code16.sharp.show.show', [ |
67 | | - sharp()->context()->globalFilterUrlSegmentValue(), |
68 | | - $parentUri, |
69 | | - $entityKey, |
70 | | - $instanceId, |
| 67 | + 'filterKey' => sharp()->context()->globalFilterUrlSegmentValue(), |
| 68 | + 'parentUri' => $parentUri, |
| 69 | + 'entityKey' => $entityKey, |
| 70 | + 'instanceId' => $instanceId, |
71 | 71 | ]) |
72 | 72 | )); |
73 | 73 | Route::get('{parentUri}/s-form/{entityKey}', fn ($parentUri, $entityKey) => redirect( |
74 | 74 | route('code16.sharp.form.create', [ |
75 | | - sharp()->context()->globalFilterUrlSegmentValue(), |
76 | | - $parentUri, |
77 | | - $entityKey, |
| 75 | + 'filterKey' => sharp()->context()->globalFilterUrlSegmentValue(), |
| 76 | + 'parentUri' => $parentUri, |
| 77 | + 'entityKey' => $entityKey, |
78 | 78 | ]) |
79 | 79 | )); |
80 | 80 | Route::get('{parentUri}/s-form/{entityKey}/{instanceId}', fn ($parentUri, $entityKey, $instanceId) => redirect( |
81 | 81 | route('code16.sharp.form.edit', [ |
82 | | - sharp()->context()->globalFilterUrlSegmentValue(), |
83 | | - $parentUri, |
84 | | - $entityKey, |
85 | | - $instanceId, |
| 82 | + 'filterKey' => sharp()->context()->globalFilterUrlSegmentValue(), |
| 83 | + 'parentUri' => $parentUri, |
| 84 | + 'entityKey' => $entityKey, |
| 85 | + 'instanceId' => $instanceId, |
86 | 86 | ]) |
87 | 87 | )); |
88 | 88 |
|
|
0 commit comments