]> BookStack Code Mirror - bookstack/commitdiff
Applied baseUrl to login redirect 166/head
authorChris <redacted>
Mon, 15 Aug 2016 14:07:45 +0000 (15:07 +0100)
committerGitHub <redacted>
Mon, 15 Aug 2016 14:07:45 +0000 (15:07 +0100)
app/Http/Middleware/Authenticate.php

index ee5144e6c7c4edbe95721669a7f89c704a8e8ec0..372f30bf64f545957cd3a8fb2a63e27416ec441f 100644 (file)
@@ -40,7 +40,7 @@ class Authenticate
             if ($request->ajax()) {
                 return response('Unauthorized.', 401);
             } else {
-                return redirect()->guest('/login');
+                return redirect()->guest(baseUrl('/login'));
             }
         }