Forums / Cotonti / Extensions / Support / Bug in comments extension

foxhound
#35641 2012-09-27 19:28

The same actually applies to the error message when posting a comment. By default the page redirects to the top of the page.
So, when someone makes a comment which goes wrong (for example try to submit an empty comment) the page refreshes to the top, but if you have the comments listed at the bottom (and so the error message as well) a user needs to scroll down to see the actual error message.

I tried to fix it myself and I found this line:

cot_redirect(cot_url($url_area, $url_params, '#c' . $id, true));

The #c is the anchor here, but if I replace it with one I am 100% sure works (cause I use it for all my other comment links) it still reverts to the top.
I tried removing Sid which is probably for the navigation but that too did not work.
If this is a confirmed bu I will add it to Github as well, can you please check?
And.........if you can is it possible to post how I can resolve this until an updated version is released?

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />