`function redirect` does not actually issue a redirect - unless this is a new name for the event to be adopted everywhere the function should either be named the same as the event `beforeRedirect` or describe what it does `setRedirectcUrl` (or similar)