Into function ajax_comments_edit($comment)
link is build like that

$form_build['actions']['cancel'] = array(
    '#markup' => '<a class=\'use-ajax\' href="/ajax_comments/edit/cancel/' . $node->nid . '/' . $comment->cid . '">' . t('Cancel') . '</a>',
    '#weight' => 21,
  );

better used l() to dont get error 404

$form_build['actions']['cancel'] = array(
    '#markup' => l(t('Cancel'), 'ajax_comments/edit/cancel/' . $node->nid . '/' . $comment->cid, array('attributes' => array('class' => array('use-ajax')))),
    '#weight' => 21,
  );
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mstef’s picture

Status: Active » Needs review
FileSize
725 bytes

Patch

muschpusch’s picture

Status: Needs review » Closed (fixed)

thanks! committed!