-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Closed
Copy link
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
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)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement