fixed issue where non browser handler page gets stuck in redirect loop