replaced JSON single quotes with double quotes
smart redirect support