That is an html problem. You need to precede links that go outside your site with http. Try puting a normal anchor with www.amazon.com in it. <a href=" www.amazon.com">Amazon</a> The link will be url will try to go to http://yoursite.com/www.amazon.com.
In short, you need the http://. On Thu, Nov 11, 2010 at 07:39, deepak <[email protected]> wrote: > Hi > > There is a column in my table which stores external urls e.g. > "www.amazon.com". > > Now when I try to use link_to('Product', $Obj->getUrl()). It outputs > <a href="http://www.myappbaseurl.com/www.amazon.com">Product</a> > > Infact symfony takes all the url as internal uri. > > Is there a way in symfony thru which I can assign external url to > links such as <a href="www.amazon.com">Product</a> ? > > Now if there is a http:// added in the url it considers it as external > url and redirects properly. > > > Let me know if I make any sense here. > > Thanks > Deepak > > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<symfony-users%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Alex Pilon (613) 608-1480 -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
