]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/LoginController.php
Started refactor of URL system to better extend Laravel
[bookstack] / app / Http / Controllers / Auth / LoginController.php
index 78a8d33c0aed8ae342a5a80d86b4c2015ef02158..21ded23552431a0feb3b770df64e037c0ba2c6a5 100644 (file)
@@ -106,9 +106,7 @@ class LoginController extends Controller
             $this->ldapService->syncGroups($user, $request->get($this->username()));
         }
 
-        $path = session()->pull('url.intended', '/');
-        $path = baseUrl($path, true);
-        return redirect($path);
+        return redirect()->intended('/');
     }
 
     /**