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

Why when we click on a question that has been answered on the questions list home page the page is scrolled down to the latest answers?

+3 votes
It would have been more convenient to arrive on the question's page with the vie of the first answer isnt it?

Well it looks like that on soem website it's ok and on some toher it's not.

For instance on this one it's ok:

http://question2answer.org/qa/861/yoyo-dfasdfasdasdasdasd

But on this one it's not because of the # at the end:

http://pokemondb.net/pokebase/10/where-can-you-find-a-rainbow-wing-in-heartgold#11

How can we remove the #number so that the link bring us at the top of the page?

Thanks a lot!
asked Apr 29, 2010 in Q2A Core by TimaL

1 Answer

+1 vote
This happens if the recent event on the home page is the question being answered instead of being asked, i.e. it's listed as "answered X ago" instead of "asked X ago". The link changes as appropriate.

In any event, if you want to change that, remove the following line from qa-app-format.php:

$fields['url'].='#'.qa_html(urlencode($acpostid));

This will also affect other places where there are direct links to answers or comments on a question, rather than the top of the question page.
answered Apr 29, 2010 by gidgreen
I thought this was an odd decision, because if you click a question title (that's formatted exactly the same whether it's 'asked' or 'answers') you expect to go to the question. Maybe you could create a slightly different style for linking to answers, like just showing the votes on the answer, or having a separate "View answer" link under the question link.
I hope to choose below by manager option.
 opt1: link to question (Default)
 opt2: link to question + "View answer"
 opt3: link to oldest(first) answer
 opt4: link to latest(last) answer

It is thought for UI elsewhere ...