-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request]: RedirectAttributes with .redirect() ? #96
Comments
resmo
changed the title
feature request: RedirectAttributes with .redirect() ?
[feature request]: RedirectAttributes with .redirect() ?
Jan 10, 2024
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 @HxRequest
@GetMapping("/test")
public HtmxResponse testRedirectHx(RedirectAttributes redirAttrs) {
redirAttrs.addFlashAttribute("success", "an example message");
return HtmxResponse.builder()
.redirect("/")
.build();
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know if this is even possible but it would be nice to have support for Springs
RedirectAttributes
when usingThe text was updated successfully, but these errors were encountered: