Fixed the redirect issue. Should work properly now.