You will have to return a Response
-Object from that listener. Whenever there is a return Object of type Response
, then the application workflow stops and the Response
is returned.
What you wanna be doing is to create said Response
-Object, give it the status redirect and add the header for redirection ;)