I have create folder "question2answer" in my web root.
I am returning default path from function "qa_get_logged_in_user_html($logged_in_user, $relative_url_prefix)". I ensured that my public user name is available in variable "$logged_in_user".
return '<a href="'.qa_path_html('user/'.$publicusername).'" class="qa-user-link">'.htmlspecialchars($publicusername).'</a>';
But when I click on the logged in user it gives me error "Page not found".
Can anybody help me to solve this problem.