Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
436 views
in Q2A Core by
Is it possible to redirect a user to a particular landing page once a question has been submitted?

1 Answer

+1 vote
by

use qa_redirect($pagename)

 

 

by
function qa_redirect($pagename="http://myredirectlink.com", $request, $params=null, $rooturl=null, $neaturls=null, $anchor=null)
/*
    Redirect the user's web browser to $request and then we're done - see qa_path() for other parameters
*/
    {
        header('Location: '.qa_path($pagename, $request, $params, $rooturl, $neaturls, $anchor));
        exit;
    }

Is this right?  I think i am not understanding how to use the function?
by
Hm... you need to learn PHP; what you are doing is redeclaring the function, not calling it.  Just put:

qa_redirect("http://myredirectlink.com");

in your code.  Or, just use the inbuilt "header" function:

header('Location: http://myredirectlink.com');

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.

Categories

...