The solution you find over here: http://www.question2answer.org/qa/20314/implementing-custom-login-how-get-paramter-url-for-redirect
// loginbox layer with redirect to recent page ?to= $request=qa_request(); $topath=qa_get('to'); $userlinks=qa_get_login_links(qa_path_to_root(), isset($topath) ? $topath : qa_path($request, $_GET, '')); $this->output('<div id="loginBox"> <form method="post" action="'.qa_html(@$userlinks['login']).'" id="loginForm"> // ... </form> </div>');
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.