id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 6213,PREPEND_WWW and APPEND_SLASH settings don't work with flatpages middleware,Jason Davies,orthagonal,"The {{{PREPEND_WWW}}} and {{{APPEND_SLASH}}} settings don't force a redirect when {{{FlatpageFallbackMiddleware}}} is being used. This is because a redirect only happens if the target URL can be resolved using {{{urlresolvers.resolve()}}} in the code. This behaviour has occurred since the change in [6852]. If the target URL cannot be resolved immediately using {{{urlresolvers.resolve()}}}, perhaps we should check in {{{process_response()}}} to make absolutely sure the response status code will be 404? If some intermediate middleware, e.g. {{{FlatpageFallbackMiddleware}}} has returned a successful response code, we can then issue a redirect as per the old behaviour.",Bug,closed,contrib.flatpages,dev,Normal,fixed,APPEND_SLASH PREPEND_WWW flatpages easy-pickings,semente@… xarquonster@… jm.bugtracking@… che@… sjl,Accepted,1,0,0,1,0,0