make redirects independent from input locale, refactor, fix nil given error on home page