Changes between Version 1 and Version 2 of Ticket #16040


Ignore:
Timestamp:
May 16, 2011, 10:30:55 AM (14 years ago)
Author:
Jeremy Dunck
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16040 – Description

    v1 v2  
    33I have a multi-tenant site serving www.foo.com and www.bar.com.  I also have a view which redirects from /spam/ to /eggs/.
    44
    5 Middleware handles the www -> m redirection, while a view handles the /spam/ -> /eggs/ redirection.
     5Middleware handles the domain redirection, while a view handles the /spam/ -> /eggs/ redirection.
    66
    77If the test client requests http://www.foo.com/spam/, it is redirected to http://www.bar.com/spam/, but _handle_redirects, while parsing url into scheme and path, does not also update SERVER_NAME in extras.  This causes the 2nd request handling to be handled as though it were for http://www.foo.com/spam/ (again), causing a redirection loop.
Back to Top