Skip to content
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

Handle redirects #361

Open
wants to merge 3 commits into
base: 6.0.x
Choose a base branch
from

Conversation

Brutus5000
Copy link

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

Fixes micronaut-projects#360
Instead of passing a missing body to the view do an early exit if a redirect is encountered.
@CLAassistant
Copy link

CLAassistant commented Mar 4, 2022

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.

✅ sdelamo
❌ Brutus5000
You have signed the CLA already but the status is still pending? Let us recheck it.

@Brutus5000
Copy link
Author

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

@Brutus5000
Copy link
Author

@sdelamo Can you maybe help out here?

@sdelamo
Copy link
Contributor

sdelamo commented Jul 18, 2022

A workaround would be return

HttpResponse<?> index() {

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Returning HttpResponse.redirect doesn't redirect but causes View crash
3 participants