micronaut-views
micronaut-views copied to clipboard
Handle redirects
Fixes #360 Instead of passing a missing body to the view do an early exit if a redirect is encountered.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.
:white_check_mark: sdelamo
:x: Brutus5000
You have signed the CLA already but the status is still pending? Let us recheck it.
Can anyone tell me why the CI is not running or what I have to do?
@sdelamo Can you maybe help out here?
A workaround would be return
HttpResponse<?> index() {
if (blabba) {
return HttpResponse.ok(new ViewModel(.....));
} else {
return HttpResponse.seeOther("/foo");
}
}