Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

Minor bug: sub menu item "Recent" always appears selected

+2 votes

Go to http://question2answer.org/qa/questions, the "Recent" sub menu item is selected. But if you go to any of the others, e.g. "Most votes" then "Recent" is still selected, as well as "Most votes".

Just thought you'd like to know :)

Q2A version: 1.5
asked Jan 23 in Q2A Core by DisgruntledGoat
Yes I can confirm this on my site too...

1 Answer

+2 votes

Thanks for this. This was a bug introduced when trying to fix a different bug, relating to the highlighting of custom links to Q2A pages.

For now you can fix it by replacing the following in qa-page.php:

(strtolower(@$navlink['url'])==$selfpathhtml)

... with ...

false

I'll roll this into Q2A 1.5.1, along with a different way of ensuring custom links to Q2A pages are highlighted correctly.

answered Jan 24 by gidgreen
awesome !!!
It took 3 hours sorting out that bug.
Thanks that worked...