...I DID modify the handleRedirect() function!
If you're wondering, first look at this: here. There is duplicated functionality in Sugar, the SugarApplication::redirect() function is the one you should use, not handleRedirect(). That one is there for BC.