LPS-46832 Move redirect logic from JSP to ServicePreAction

Hi Minhchau,

Can you do a soft review of this pull request and let me know if you think this is the right commit?

Thanks,
George