Mike, Sean,
In a standard setup (without server.webpath), all the url are requested
to cherrypy with a tg_fastcgi.cgi prefix. ie If I create a link with
std.url('edit', id=id), then the link will be properly created inside
the html page, but the rewriterules will prepend "tg_fastcgi.cgi" to it
before handing the request over to cherrypy. This breaks my website as
instead of calling the "edit" method, the default method will be called
with "tg_fastcgi.cgi", "edit" and "id=id" keywords.
Now, if I use the server.webpath="/tg_fastcgi.cgi" setting, all the
requests are effectively stripped out of the "tg_fastcgi.cgi" prefix
before being handed over to cherrypy, which works great, but another
problem appears when I use relative links.
i.e absoulte links works as espected: std.url('/edit', id=id) ->
/tg_fastcgi.cgi/edit&id=id -> /edit&id=id
but relative ones don't: std.url('edit', id=id) ->
/tg_fastcgi.cgiedit&id=id -> /tg_fastcgi.cgiedit&id=id
So ultimately, using absolute links all over the place should work..
But isn't there a way of stripping this prefix right after it has been
processed by tg_fastcgi.cgi?
Thanks again for the help,
Yannick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---