redirect bugfix, fixed code format, added app.cms.site to template vars