Fixed issue with redirects returning an empty page