From 2a19f9f3a7d563471b545669548de969b0742dbd Mon Sep 17 00:00:00 2001 From: Niall Thomson Date: Fri, 13 Dec 2024 14:41:58 -0700 Subject: [PATCH] feat: UI home page renders instead of redirect (#696) --- .../main/java/com/amazon/sample/ui/web/HomeController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/src/main/java/com/amazon/sample/ui/web/HomeController.java b/src/ui/src/main/java/com/amazon/sample/ui/web/HomeController.java index 473de5772..d922b2e55 100644 --- a/src/ui/src/main/java/com/amazon/sample/ui/web/HomeController.java +++ b/src/ui/src/main/java/com/amazon/sample/ui/web/HomeController.java @@ -39,8 +39,8 @@ public HomeController(@Autowired CatalogService catalogService, @Autowired Carts } @GetMapping("/") - public String index() { - return "redirect:/home"; + public String index(final Model model, final ServerHttpRequest request) { + return home(model, request); } @GetMapping("/home")