Modify ↓
Opened 18 years ago
Closed 18 years ago
#3708 closed enhancement (fixed)
def get_path_links() build links with several 'root' elements
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.10 |
Component: | version control/browser | Version: | 0.9.6 |
Severity: | trivial | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Has the path one or more slash behind a slash the browser path link will contain more 'root' elements.
Example:
- http://trac.edgewall.org/browser/trunk/trac:
- The browser path link is:
- root/trunk/trac
- http://trac.edgewall.org/browser/trunk///trac:
- The browser path link is:
- root/trunk/root/root/trac
Solution:
In
trac/versioncontrol/web_ui/util.py
replace
def get_path_links(href, path, rev): ... for part in parts: path = path + part + '/' ...
with
def get_path_links(href, path, rev): ... for part in parts: if not part and path != '/': continue path = path + part + '/' ...
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
Type: | defect → enhancement |
---|
comment:2 by , 18 years ago
Component: | general → browser |
---|
comment:3 by , 18 years ago
Milestone: | → 0.10 |
---|---|
Owner: | changed from | to
Severity: | normal → trivial |
Note:
See TracTickets
for help on using tickets.
Good catch.