I have a themed node view page (having an alias URL) where I have also themed the comments forms and comment threads.
A code snippet for that :
$form_template = drupal_get_form("comment_node_image_gallery_form", (object) array('nid' => $variables['nid'])); print drupal_render($form_template);
It all works fine but with one problem, when I try to post an empty comment thread, it takes me to the default comment-reply page and not in the alias page (http://mysite.com/comment/reply/138). Why is this happening and what is the way to stop this so that it gets redirected to the original aliased page when it gets stopped in the validation procedure?
FYI : However, when I submit a valid comment it takes me to the aliased page after successful submission.
Hope I made myself clear and thanks in advance...