Skip to content

ContentNegotiatingViewResolver should be able to follow redirect:views [SPR-8611] #13254

@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-8611 and commented

ContentNegotiatingViewResolver should be able to follow redirect:views. It seems inconsistent that if the controller clearly says that it wants a redirect view by returning the string "redirect:xxx" then it is unfortunate that the ContentNegotiatingViewResolver does not respect that wish. It works fine if the controller returns a RedirectView instance, so it is also inconsistent that the string convention is not followed. N.B. it works if the preferred media type is one that leads to an HTML view (so browser clients generally don't notice), but machine and command line clients do not work because they get a 200 instead of a 302.


Affects: 3.0.5

Referenced from: commits 37d22ad

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions