Cannot view a directory by editing urls
Bug #569358 reported by
Jasper St. Pierre
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
loggerhead |
Fix Released
|
Low
|
Unassigned |
Bug Description
URLs should be hand-editable friendly. My first instinct to go from "blob/a/b/c.txt" to its parent directory or the root of a repo is to delete the filename portion of the URL, which becomes "blob/a/b/". This does not work in Loggerhead. cgit handles this nicely by having a soft redirect from the incorrect "blob/a/b/" URL to the correct "tree/a/b/".
Related branches
lp:~jstpierre/loggerhead/fix-569358
- John A Meinel: Approve
-
Diff: 123 lines (+39/-6)4 files modifiedloggerhead/controllers/inventory_ui.py (+6/-3)
loggerhead/controllers/view_ui.py (+4/-1)
loggerhead/tests/test_controllers.py (+1/-1)
loggerhead/tests/test_simple.py (+28/-1)
To post a comment you must log in.
So there are two separate issues here; the ':' issue - I've not seen a browser that had trouble, and most show it as : in the url bar. Lets then focus on the other issue.