Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
559 views
in Q2A Core by
retagged by

I just realized now, having some latex parser on my site, that editing a comment does not scroll to the commnt but to the answer, e.g. clicking edit gives. /46773/test?state=edit-51683&show=46773#q46773

which scrolls to the question #q46773, and not to the edit window of the comment 51683.

The link should be without the anchor #q46773: /46773/test?state=edit-51683&show=46773

 

I am not sure if somebody can confirm this. =) But I have this issue on my site...

 

Problem is that in qa-page-question-post.php I have not found yet the line where I can do changes, so that the anchor is not set...

Q2A version: 1.5.4

1 Answer

0 votes
by

Okay, I have found one solution:

qa-page-question-post.php

change line:
qa_page_q_refresh($pagestart, 'edit-'.$commentid, $commentparenttype, $comment['parentid']);

to:
qa_page_q_refresh($pagestart, 'edit-'.$commentid, $commentparenttype, null);

This seems to work.

...