Skip to content

Commit 046724b

Browse files
committed
Document that WebFlux does not support forward redirects
Closes gh-33441
1 parent 5e3c5d4 commit 046724b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

framework-docs/modules/ROOT/pages/web/webflux/dispatcher-handler.adoc

+6-1
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,11 @@ xref:web/webflux/reactive-spring.adoc#webflux-exception-handler[Exceptions] in t
184184
View resolution enables rendering to a browser with an HTML template and a model without
185185
tying you to a specific view technology. In Spring WebFlux, view resolution is
186186
supported through a dedicated xref:web/webflux/dispatcher-handler.adoc#webflux-resulthandling[HandlerResultHandler] that uses
187-
`ViewResolver` instances to map a String (representing a logical view name) to a `View`
187+
`ViewResolver` instances to map a String (representing a logical view name) to a `View`
188188
instance. The `View` is then used to render the response.
189189

190+
Web applications need to use a xref:web/webflux-view.adoc[View rendering library] to support this use case.
191+
190192

191193
[[webflux-viewresolution-handling]]
192194
=== Handling
@@ -238,6 +240,9 @@ operate in terms of logical view names. A view name such as
238240
`redirect:/some/resource` is relative to the current application, while a view name such as
239241
`redirect:https://example.com/arbitrary/path` redirects to an absolute URL.
240242

243+
NOTE: xref:web/webmvc/mvc-servlet/viewresolver.adoc#mvc-redirecting-forward-prefix[Unlike the Servlet stack],
244+
Spring WebFlux does not support "FORWARD" dispatches, so `forward:` prefixes are not supported as a result.
245+
241246

242247
[[webflux-multiple-representations]]
243248
=== Content Negotiation

0 commit comments

Comments
 (0)