Introduce prevent_canonical_redirect() to try possibly fix problem with redirect on home page. #427