I have a html page where I am redirecting to homepage using /p/homepage/. Its working fine on local environment without baseUrl but this is not working on test environment. Am I missing something here?
What you can do to solve this is redirect to the full URL. You can get the first part of the URL with get GetApplicationUrl Java action from community commons and put that together with /p/homepage/.