We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fce4359 commit 13aaf22Copy full SHA for 13aaf22
src/Module.php
@@ -75,7 +75,12 @@ public function onDispatch(MvcEvent $event)
75
->setHost(null)
76
->setPort(null)
77
->setUserInfo(null);
78
- $redirectUrl = $uri->toString();
+
79
+ $redirectUrl = null;
80
+ if( $uri->toString() !== '/') {
81
+ $redirectUrl = $uri->toString();
82
+ }
83
84
85
// Redirect the user to the "Login" page.
86
return $controller->redirect()->toRoute('login', [], ['query' => ['redirectUrl' => $redirectUrl]]);
0 commit comments