add nonjavascript redirect support to main index