Changes between Initial Version and Version 3 of Ticket #9397


Ignore:
Timestamp:
Oct 23, 2008, 9:47:38 PM (16 years ago)
Author:
Malcolm Tredinnick
Comment:

(Fixed description formatting to stop my eyes watering.)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9397

    • Property Component UncategorizedHTTP handling
  • Ticket #9397 – Description

    initial v3  
    11If I have a url defined, such as:
     2{{{
     3(r'^hello$', 'mysite.index.views.hello')
     4}}}
     5and let's say I have a page on http://mysite.net that redirects via `HttpResponseRedirect(reverse('mysite.index.views.hello'))`
    26
    3 (r'^hello$', 'mysite.index.views.hello')
     7If I am at `http://www.mysite.net` -- it correctly goes to `http://www.mysites.net/hello`
    48
    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
     9If I am at `http://mysite.net` (no www) -- it redirects to `http://mysite.net/.net/hello`
    910
    1011It's easily fixed by changing the url definition to
    1112
    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)
    1317
    1418Seems to me though, that this shouldn't be required (seems a little buggy and took awhile to track down)
Back to Top