Showing
1 changed file
with
1 additions
and
1 deletions
@@ -206,7 +206,6 @@ class PageRedirect { | @@ -206,7 +206,6 @@ class PageRedirect { | ||
206 | /// check if redirect is needed | 206 | /// check if redirect is needed |
207 | bool needRecheck() { | 207 | bool needRecheck() { |
208 | final match = Get.routeTree.matchRoute(settings.name); | 208 | final match = Get.routeTree.matchRoute(settings.name); |
209 | - Get.parameters = match?.parameters; | ||
210 | 209 | ||
211 | // No Match found | 210 | // No Match found |
212 | if (match?.route == null) { | 211 | if (match?.route == null) { |
@@ -216,6 +215,7 @@ class PageRedirect { | @@ -216,6 +215,7 @@ class PageRedirect { | ||
216 | 215 | ||
217 | final runner = MiddlewareRunner(match.route.middlewares); | 216 | final runner = MiddlewareRunner(match.route.middlewares); |
218 | route = runner.runOnPageCalled(match.route); | 217 | route = runner.runOnPageCalled(match.route); |
218 | + Get.parameters = route?.parameter; | ||
219 | 219 | ||
220 | // No middlewares found return match. | 220 | // No middlewares found return match. |
221 | if (match.route.middlewares == null || match.route.middlewares.isEmpty) { | 221 | if (match.route.middlewares == null || match.route.middlewares.isEmpty) { |
-
Please register or login to post a comment