Changes between Initial Version and Version 3 of Ticket #9397
- Timestamp:
- Oct 23, 2008, 9:47:38 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9397
- Property Component Uncategorized → HTTP handling
-
Ticket #9397 – Description
initial v3 1 1 If I have a url defined, such as: 2 {{{ 3 (r'^hello$', 'mysite.index.views.hello') 4 }}} 5 and let's say I have a page on http://mysite.net that redirects via `HttpResponseRedirect(reverse('mysite.index.views.hello'))` 2 6 3 (r'^hello$', 'mysite.index.views.hello') 7 If I am at `http://www.mysite.net` -- it correctly goes to `http://www.mysites.net/hello` 4 8 5 and let's say I have a page on http://mysite.net that redirects via HttpResponseRedirect(reverse('mysite.index.views.hello')) 6 7 If I am at http://www.mysite.net -- it correctly goes to http://www.mysites.net/hello 8 If I am at http://mysite.net (no www) -- it redirects to http://mysite.net/.net/hello 9 If I am at `http://mysite.net` (no www) -- it redirects to `http://mysite.net/.net/hello` 9 10 10 11 It's easily fixed by changing the url definition to 11 12 12 (r'^hello/$', 'mysite.index.views.hello') (adding a trailing forward slash) 13 {{{ 14 (r'^hello/$', 'mysite.index.views.hello') 15 }}} 16 (adding a trailing forward slash) 13 17 14 18 Seems to me though, that this shouldn't be required (seems a little buggy and took awhile to track down)