Opened 10 years ago

Closed 10 years ago

#14346 closed (invalid)

Url patterns double slash // problem

Reported by: mihneagiurgea Owned by: nobody
Component: HTTP handling Version: 1.2
Severity: Keywords: url patterns, double slash
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



We have the following url config set up:

(r'(?P<query>.*)/search/$', ''),

And it has a problem with double slashes: if the url is pointed to, the query argument that the view receives will be set to something+http:/ instead of something+ The request.METAREQUEST_URI?, SCRIPT_URI and SCRIPT_URL is correct, but the request.METAPATH_INFO? and PATH_TRANSLATED is not.

Is this a known django problem or does it have something to do with the way we set up our server?

Thank you,
Mihnea Giurgea @ uberVU

Change History (1)

comment:1 Changed 10 years ago by dan_head

Resolution: invalid
Status: newclosed

I've seen this before and it's usually an Apace/mod_rewrite issue. Have a look at this Stack Overflow Question/Answer

I'm going to close this ticket as invalid since The META variables should come directly from the server. If you see some evidence that the web server is sending the right values and it is Django that is somehow modifying them then please reopen.

Note: See TracTickets for help on using tickets.
Back to Top