Fix Tomcat rendering issues and redirect