foxhound |
|
---|---|
No idea if this is already know, but there is a bug in the comments extension (latest Sienna version 0.9.11). In the comments.functions.php the generated anhor link shows /xxxxxxx#comments#comments which is an invalid anchor and so it simply goes to the top of the page instead of the comments area.I fixed that by doing the following: // A dirty fix for pagination anchors $pagenav['main'] = preg_replace('/href="(.+?)"/', 'href="$1#comments"', $pagenav['main']); $pagenav['prev'] = preg_replace('/href="(.+?)"/', 'href="$1#comments"', $pagenav['prev']); $pagenav['next'] = preg_replace('/href="(.+?)"/', 'href="$1#comments"', $pagenav['next']); } Change to: // A dirty fix for pagination anchors $pagenav['main'] = preg_replace('/href="(.+?)"/', 'href="$1"', $pagenav['main']); $pagenav['prev'] = preg_replace('/href="(.+?)"/', 'href="$1"', $pagenav['prev']); $pagenav['next'] = preg_replace('/href="(.+?)"/', 'href="$1"', $pagenav['next']);
I removed the "#comments" from the url creation as its already added by the function above this part.
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
pieter |
|
---|---|
I logged it here ... can we help you ...
|
foxhound |
|
---|---|
The same actually applies to the error message when posting a comment. By default the page redirects to the top of the page. 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. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|