This is probably a Pylons problem rather than Routes. I have a
routing rule like this:
map.connect("glossary", "/glossary/:page", controller="main",
action="glossary", page="index")
h.url_for("glossary") generates "/glossary" rather than the expected
"/glossary/". When the user clicks on the link, Pylons serves the
index page directly rather than redirecting to "/glossary/" like
Apache and other frameworks do. This breaks any relative links on the
page because a link to "foo" will resolve to "/foo" instead of
"/glossary/foo".
In related news, the URL that Paster serve prints for access is
"http://127.0.0.1:5000". This is an invalid URL even though Pylons
accept it. It should be "http://127.0.0.1:5000/".
--
Mike Orr <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---