And good thing I asked. It turns out to be as trivial as just doing this:
No need to do a homepage portlet that does a client-side redirect, or any of the other ugly things I've seen done./** * Takes over /index.htm so users don't see the legacy OpenMRS UI */ @Controller public class HomepageOverrideController { @RequestMapping("/index.htm") public String showOurHomepage() { return "forward:/pages/kenyaHome.page"; } }
Thanks, Mike, for saving me time, and preventing ugly code.
PS- If you're doing this you should also override the login page at /login.htm
No comments:
Post a Comment