Opened 16 years ago
Closed 13 years ago
#9316 closed Bug (wontfix)
databrowse does not filter URL fields properly
Description ¶
When trying to filter results by a field that contains a URL, the link generated by databrowse is invalid.
For example, I have a visit tracking application, and each visit has a referrer URLField.
So when I go to http://mysite.com/databrowse/visitors/visit/fields/referrer/ I see a list of all the different values for referrer (so far so good).
But when I click on one of them such as http://mysite.com/accounts/login/, the browser goes to http://mysite.com/accounts/login// (notice the double slash at the end) instead of the expected http://mysite.com/databrowse/visitors/visit/fields/referrer/{{ the referrer URL }}/
Change History (5)
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
by , 14 years ago
Attachment: | databrowse-encode-strings.diff added |
---|
comment:2 by , 14 years ago
Has patch: | set |
---|---|
Needs tests: | set |
Patch needs improvement: | set |
Version: | 1.0 → SVN |
Added a preliminary patch. The Admin site uses a custom quote function to ensure that URL parts don't get unencoded at the wrong time on various hosting solutions or browsers. I borrowed the quote/unquote functions from admin and are slotting them into databrowse in places where text fields are slotted into URL segments.
comment:3 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Bug |
comment:4 by , 13 years ago
Easy pickings: | unset |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
UI/UX: | unset |
Databrowse is now deprecated, see #16907
Preliminary patch.