-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
It works fine when returning UuidRedirectView directly but with the short-hand string syntax it doesn't work.
It appears to be a shortcoming in Spring itself where the view needs to be detected as a redirect view directly after its returned from the controller. This happens in ViewNameMethodReturnValueHandler and its not exactly trivial to customize its behavior as you'd need to explicitly configure the full set of HandlerMethodReturnValueHandlers.
It is possible to fix it by subclassing RequestMappingHandlerAdapter and replace the ViewNameMethodReturnValueHandler with a custom implementation that can detect Blossom's redirect prefixes. Unfortunately this will involve repeating the logic in UuidRedirectViewResolver.
Acceptance criteria