What code do you use for link generation? I suggest you don't add the #id to your link generation:
<a href="<?php echo $view->router->generate('my_route', array('arg_myRouteArgument' => 'someValue')), $myObject->getId(); ? >"><?php echo $myObject->getSomeValue(); ?></a> On Mar 19, 8:05 pm, Jérémie <jeremie.symf...@gmail.com> wrote: > On Mar 19, 7:51 pm, Marijn <marijn.huizendv...@gmail.com> wrote:> Where does > symfony overwrite those links? In your routing file? Or in > > the RoutingHelper? > > In the address bar of the browser. The link, created with > "$view->router->generate('mypage')", is ok. I can see it's something like > > "localhost/myproject/mypage#12". Then I click, my browser opens the > link, the page is loaded, but doesn't go the the anchor (because of > the "#" becoming "%23"). > > Thanks for your answer :) > Jérémie > > > > > On Mar 19, 5:16 pm, Jérémie <jeremie.symf...@gmail.com> wrote: > > > > I there, > > > > I'd like to use anchors in my project, but when I have something like > > > "/page/1#12", it's overwritten by "/page/1%2312" > > > We could change it in the previous versions, but in 2.0, I can't find > > > where. > > > Does anybody know? > > > > Thanks > > > Jérémie -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.