Modify ↓
#8877 closed defect (duplicate)
menu item links fail on trac installations in the root of the server.
Reported by: | Owned by: | Catalin BALAN | |
---|---|---|---|
Priority: | normal | Component: | MenusPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
In our trac installation, trac is installed at the root of our server.
When an item's href is set to (say)
ticket_defect.href = /newticket?type=defect
The resulting URI is
//newticket?type=defect
which causes the browser to make requests to a non-existent server.
Investigating a similar error in another plugin suggested it may be due to 'ref.href()' returning '/'. Not sure if it is the case here.
Attachments (0)
Change History (7)
comment:1 Changed 13 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 Changed 13 years ago by
comment:3 Changed 13 years ago by
comment:4 Changed 13 years ago by
comment:5 Changed 13 years ago by
comment:6 Changed 13 years ago by
comment:7 Changed 13 years ago by
(In [11166]) Fixes #7399, Refs #7680, #8877, #8953: Yet another attempt to fix invalid links when req.href = '/'
. If the href
for a menu item specifies a relative path, the trailing forward slashes are stripped from req.href()
so that the two cases are handled: 1) req.href()
is '/'
and 2) req.href()
is '/somepath'
.
Note: See
TracTickets for help on using
tickets.
Duplicate of #7399.