Revert "Do not set the deprecated autoredirect property."

This reverts commit 6961318a56041e0371e35a61bd6ac248d8d3e896.