Added redirect URL generator