Modify ↓
Opened 8 years ago
Last modified 15 months ago
#12756 new defect
Pseudo anchors should allow whitespace and special characters
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-stable-1.6.x |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | traclink |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It doesn't seem to be possible to use whitespace or special characters in a pseudo anchor (#10284).
For example, I've wanted to have an anchor to class Environment(Component)
in trunk/trac/env.py.
- trunk/trac/env.py#/Environment anchors to an earlier instance of the
Environment
token - None of the following work:
Attachments (0)
Change History (4)
comment:1 by , 5 years ago
Milestone: | next-stable-1.2.x → next-stable-1.4.x |
---|
comment:2 by , 4 years ago
comment:3 by , 4 years ago
At least, there is no cross-browser solution in past years. We should verify the proposed changes work on supported browsers.
FYI: javascript - Encoding of window.location.hash - Stack Overflow
Note:
See TracTickets
for help on using tickets.
Personally, as far as trac is passing search terms via uri, the first method - uri encoding - is the most widely compatible way. So, here's the clue for that.
trac/htdocs/js/search.js
h.substr(2);