I want to forward users to a particular URL after posting a comment. I created the post action like this
$referer = $_SERVER['HTTP_REFERER'];
$explode = explode('?posted_on',$referer);
$send_back_url = $explode[0]."?posted_on=".$post_id;
This works fine in when the referer URLs are in the following format
But its not working when the referer URL is like
because its trying to forward to
Actually it should forward to
Use
querycomponent.