I'm trying to redirect an url containing a hashtag(#) with cakephp's redirect controller function.
When I use this code it url encodes the hashtag
$this->redirect(array('action' => 'index',$menuItem."#article_id_".$created_id));
output: http://something.com/link%23article_id_62
Is there a way that
You need to use the #
key:
$this->redirect([
// ...
'#' => 'article_id_' . $created_id,
]);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With