Attached is a patch to allow URL fragments to work in internal confirmation pages. E.g.

"internal:node/33#myAnchor" will now properly redirect to "http://yoursite/?q=node/33#myAnchor"

New code starts at line 1889:


elseif (preg_match('/^internal:/', $node->webform['confirmation'])) {
    $fragment = null;
	$path = preg_replace('/^internal:/', '', $node->webform['confirmation']);
	
	$pos = strrpos($path,'#');
	if($pos)
	{
		$fragment = substr($path,$pos+1);
		$path = substr($path,0,$pos);
	}
	
    $redirect = array(trim($path), 'sid='. $sid, $fragment);
  }

I hope this helps! Please review.

CommentFileSizeAuthor
webform.module.patch892 bytesbrice-dupe

Comments

quicksketch’s picture

Version: 6.x-2.x-dev »
Category: bug » feature
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.