]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/LoginController.php
Merge branch 'feature/public-login-redirect' of git://github.com/Xiphoseer/BookStack...
[bookstack] / app / Http / Controllers / Auth / LoginController.php
index ea584a3b6f0427f92c271fa8924bff4a5796edb9..4c396d3cd3f756af684f0e9c5af579bc3ed9d766 100644 (file)
@@ -76,6 +76,10 @@ class LoginController extends Controller
             ]);
         }
 
+        if ($request->has('intended')) {
+            redirect()->setIntendedUrl($request->get('intended'));
+        }
+
         return view('auth.login', [
           'socialDrivers' => $socialDrivers,
           'authMethod' => $authMethod,