Ticket #33 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

SiteTree in 'Edit' controller should work without trailing forward-slash

Reported by: ian Assigned to:
Priority: major Milestone: 0.1
Component: admin widgets Version: 0.1a1
Keywords: Cc: brian@pagodacms.org, ian@pagodacms.org

Description

If you start TestProject and go to http://localhost:8080/admin/edit/ the SiteTree will come up just fine. However if you omit the trailing forward slash and visit http://localhost:8080/admin/edit the SiteTree panel will make its JSON requests to the admin controller instead of the edit controller, and of course will get a bunch of 404 messages.

We could just issue redirects, to force the usage of the trailing slash. Apache does this sort of thing all the time... OR we could use absolute URL's for those JSON requests instead of relative ones.

Change History

08/05/07 17:27:38 changed by ian

  • status changed from new to closed.
  • resolution set to fixed.

Brian had a good idea for fixing this one. If you have an exposed index method on a controller, CherryPy will find it and redirect to the correct url (the one with the forward slash). In r509 we fixed this by adding an index method to pagoda.controllers.admin:EditController that just calls the default method.

Log in as guest/pagoda to create tickets