Solved the redirect issue: