Added ACP login redirect
authorMarcel Werk <burntime@woltlab.com>
Thu, 9 May 2013 18:17:21 +0000 (20:17 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 9 May 2013 18:17:21 +0000 (20:17 +0200)
wcfsetup/install/files/lib/system/WCFACP.class.php

index 5ad35c2f95b87dbbf4dcff6d0fb7f536ded18868..600636e43663acf3b45b83d61e359e6c3687482e 100644 (file)
@@ -65,7 +65,7 @@ class WCFACP extends WCF {
                        if (WCF::getUser()->userID == 0) {
                                // build redirect path
                                $application = ApplicationHandler::getInstance()->getActiveApplication();
-                               $path = $application->getPageURL() . 'acp/index.php/Login/' . SID_ARG_1ST;
+                               $path = $application->getPageURL() . 'acp/index.php/Login/' . SID_ARG_1ST . '&url=' . rawurlencode(WCF::getSession()->requestURI);
                                
                                HeaderUtil::redirect($path);
                                exit;