Closed resmo closed 3 weeks ago
What do you want to make possible that is not possible now?
I'd like to have a replacement for
@GetMapping("/test")
public String testRedirect(RedirectAttributes redirAttrs) {
redirAttrs.addFlashAttribute("success", "an example message");
return "redirect:/";
}
but with a HtmxResponse
:
@HxRequest
@GetMapping("/test")
public HtmxResponse testRedirectHx(RedirectAttributes redirAttrs) {
redirAttrs.addFlashAttribute("success", "an example message");
return HtmxResponse.builder()
.redirect("/")
.build();
}
@resmo I had the same issue and fixed it in #137.
I don't know if this is even possible but it would be nice to have support for Springs
RedirectAttributes
when using