micronaut-views icon indicating copy to clipboard operation
micronaut-views copied to clipboard

Handle redirects

Open Brutus5000 opened this issue 2 years ago • 4 comments

Fixes #360 Instead of passing a missing body to the view do an early exit if a redirect is encountered.

Brutus5000 avatar Mar 04 '22 19:03 Brutus5000

CLA assistant check
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.

CLAassistant avatar Mar 04 '22 19:03 CLAassistant

Can anyone tell me why the CI is not running or what I have to do?

Brutus5000 avatar Mar 07 '22 21:03 Brutus5000

@sdelamo Can you maybe help out here?

Brutus5000 avatar Apr 01 '22 19:04 Brutus5000

A workaround would be return

HttpResponse<?> index() {

if (blabba) {
return HttpResponse.ok(new ViewModel(.....));
}  else {
return HttpResponse.seeOther("/foo");
}
}

sdelamo avatar Jul 18 '22 12:07 sdelamo