[symfony-users] Re: Symfony 2.0 - Use anchor in url
On 19 mar, 22:48, Marijn marijn.huizendv...@gmail.com wrote: What code do you use for link generation? The code is something like this: a href='.$view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page.'#p_'. $data_1['topic_last_post'])).''.$data_1['post_time'].'/a In the generated page, I can see the link is /voirtopic/18/1#p_70, so I clik, and then in the address bar it becomes... /voirtopic/ 18/1%23p_70. But if I modified the url in the address bar and write # instead of %23, it works fine and goes to the anchor in the page. Thanks, Jérémie 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 theanchor(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.
[symfony-users] Re: Symfony 2.0 - Use anchor in url
On 22 mar, 10:16, Marijn marijn.huizendv...@gmail.com wrote: Try this: a href=?php echo $view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page)), '#p_', $data_1['topic_last_post']; ? Still the same problem. I really think it's something we can configure in Symfony options; we can do it with the previous versions. Jérémie On Mar 22, 9:38 am, Jérémie jeremie.symf...@gmail.com wrote: On 19 mar, 22:48, Marijn marijn.huizendv...@gmail.com wrote: What code do you use for link generation? The code is something like this: a href='.$view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page.'#p_'. $data_1['topic_last_post'])).''.$data_1['post_time'].'/a In the generated page, I can see the link is /voirtopic/18/1#p_70, so I clik, and then in the address bar it becomes... /voirtopic/ 18/1%23p_70. But if I modified the url in the address bar and write # instead of %23, it works fine and goes to theanchorin the page. Thanks, Jérémie 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 theanchor(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.
Re: [symfony-users] Re: Symfony 2.0 - Use anchor in url
On 3/22/10 10:24 AM, Jérémie wrote: On 22 mar, 10:16, Marijnmarijn.huizendv...@gmail.com wrote: Try this: a href=?php echo $view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page)), '#p_', $data_1['topic_last_post']; ? Still the same problem. I really think it's something we can configure in Symfony options; we can do it with the previous versions. The anchor does not belong to the URL, just add it after the URL: a href=? echo $view-router-generate(...) ?#p_.../a Fabien Jérémie On Mar 22, 9:38 am, Jérémiejeremie.symf...@gmail.com wrote: On 19 mar, 22:48, Marijnmarijn.huizendv...@gmail.com wrote: What code do you use for link generation? The code is something like this: a href='.$view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page.'#p_'. $data_1['topic_last_post'])).''.$data_1['post_time'].'/a In the generated page, I can see the link is /voirtopic/18/1#p_70, so I clik, and then in the address bar it becomes... /voirtopic/ 18/1%23p_70. But if I modified the url in the address bar and write # instead of %23, it works fine and goes to theanchorin the page. Thanks, Jérémie 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émiejeremie.symf...@gmail.com wrote: On Mar 19, 7:51 pm, Marijnmarijn.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 theanchor(because of the # becoming %23). Thanks for your answer :) Jérémie On Mar 19, 5:16 pm, Jérémiejeremie.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.
[symfony-users] Re: Symfony 2.0 - Use anchor in url
The last 2 answers were right! (even if I said there where still the problem :-P ) Thanks a lot to all of you :) Jérémie On 22 mar, 10:53, Fabien Potencier fabien.potenc...@symfony- project.com wrote: On 3/22/10 10:24 AM, Jérémie wrote: On 22 mar, 10:16, Marijnmarijn.huizendv...@gmail.com wrote: Try this: a href=?php echo $view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page)), '#p_', $data_1['topic_last_post']; ? Still the same problem. I really think it's something we can configure in Symfony options; we can do it with the previous versions. Theanchordoes not belong to the URL, just add it after the URL: a href=? echo $view-router-generate(...) ?#p_.../a Fabien Jérémie On Mar 22, 9:38 am, Jérémiejeremie.symf...@gmail.com wrote: On 19 mar, 22:48, Marijnmarijn.huizendv...@gmail.com wrote: What code do you use for link generation? The code is something like this: a href='.$view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page.'#p_'. $data_1['topic_last_post'])).''.$data_1['post_time'].'/a In the generated page, I can see the link is /voirtopic/18/1#p_70, so I clik, and then in the address bar it becomes... /voirtopic/ 18/1%23p_70. But if I modified the url in the address bar and write # instead of %23, it works fine and goes to theanchorin the page. Thanks, Jérémie 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émiejeremie.symf...@gmail.com wrote: On Mar 19, 7:51 pm, Marijnmarijn.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 theanchor(because of the # becoming %23). Thanks for your answer :) Jérémie On Mar 19, 5:16 pm, Jérémiejeremie.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.
[symfony-users] Re: Symfony 2.0 - Use anchor in url
Where does symfony overwrite those links? In your routing file? Or in the RoutingHelper? 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.
[symfony-users] Re: Symfony 2.0 - Use anchor in url
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.
[symfony-users] Re: Symfony 2.0 - Use anchor in url
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.
Re: [symfony-users] Re: Symfony 2.0 - Use anchor in url
On Fri, 19 Mar 2010, Marijn wrote: What code do you use for link generation? I suggest you don't add the #id to your link generation: Especially since # is used in URLs for page anchors... -- -- 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.