I have homepage: url: / param: { module: content, action: index }
$this->redirect("@homepage"); works as I expected (including frontend_dev.php). This method is actually better. Maye it is not important, but I think it is still wrong that $this- >redirect("") and url_for("") behave differently. Thanks Paolo On Aug 26, 9:28 pm, pghoratiu <pghora...@gmail.com> wrote: > Do you have a route set up for your homepage, something like: > homepage: > url: / > param: { module: homepage, action: index } > > Try also redirecting to $this->redirect('@homepage') it's much more > efficient. > > gabriel > > On Aug 26, 5:48 pm, torok84 <toro...@gmail.com> wrote: > > > Hi, > > > I noticed that > > $this->redirect("/") in actions or url_for("/") in views when called > > from an url likehttp://host/frontend_dev.php/somethingthrowaway the > > frontend_dev.php and generate url likehttp://host/. While > > url_for("module/action") will generate an url containing > > frontend_dev.php. url_for("") will generatehttp://host/frontend_dev.php > > and this is nice, because when I am testing I want to keep the > > frotnend_dev.php in my URL. With $this->redirect seems impossible to > > get the same result, since $this->redirect("") throws an exception. I > > am quite new to symfony so maybe I am wrong. Would'n be better to make > > redirect and url_for always include frontend_dev.php if it is prenset > > in the URL of the current page? Or am I missing something? > > > Thanks > > Paolo -- 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