symfony - Add # in the end of the url -


i need add #produc url. must lokoks loke trololo.com/buy#apple. how can in controller? can't understand must add it... read https://github.com/symfony/symfony/issues/3910, don't me. not exacly need

$this->get('router')->generate('store', array('#' => $product->getslug(), true), 

maybe faced it? please, me solved problem

you have answer in the link provided. fabien potencier (symfony2's creator) said need append anchor url manually.

there no need that. append after generating url.

like so:

$url = $this->get('router')->generate('store') . '#' . $product->getslug(); 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -