Riquelme, Have you tried adding the qualified parameter to url()?
Example: h.url(controller="aaa",action="bbb",qualified=True) This will print the absolute URL path On 10 May 2011 09:00, riquelme roman <[email protected]> wrote: > Hi, everyone, > > When I deploy my pylons project wtih nginx and fastcgi, I find a url > rewriting problem caused by url_for/url function. > for example, > there is the template rendered by "foo/bar" (controller=foo, > action=bar) contians a link such as > "h.url(controller="aaa",action="bbb")", if I click the link, it will > bring me to the url "foo/bar/aaa/bbb", > > and if you use paginator, for example, it will generate links such as > "foo/bar?page=1", but when I click other links, it will redirect me to > "foo/bar/foo/bar?page=2", > > I think it may be some nginx configuration problems, such as > fastcgi_params, > > Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" 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/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
