Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
312 views
in Q2A Core by
when a user typed in the url, it should go directly to url.com/?qa=questions

is there any solution?

1 Answer

0 votes
by

It sounds like you want the front page to behave like the questions listing. You can do this by inserting the following in your qa-config.php file (requires Q2A 1.4 or later):

$QA_CONST_PATH_MAP=array(
  'questions' => '',
);
by
I implemented this and it adds an extra / every category page i.e.

mathhomeworkanswers.org//algebra-1-answers

Instead of mathhomeworkanswers.org/algebra-1-answers

Any workaround to fix this?
by
if you already got a custom theme you can hide the additional q&a in the file:
qa-theme.php

class qa_html_theme extends qa_html_theme_base
{
    function nav_list($navigation, $navtype)
    {
      if ($navtype=='nav-main')
      {
        $oldnavigation=$navigation;
        $navigation="";

        // add on any remaining ones
        foreach ($oldnavigation as $key => $navlink){
          if ((!isset($navigation[$key]))&&($key!="qa"))
            {
              $navigation[$key]=$oldnavigation[$key];
            }
        }
      }
        
      qa_html_theme_base::nav_list($navigation, $navtype);
    }
}
...