[BUGFIX] Ensure redirectUrl is a string