Skip to content

WebFlux support for flash attributes [SPR-16026]Β #20575

@spring-projects-issues

Description

@spring-projects-issues

Adrien Sanchez opened SPR-16026 and commented

Hello,

I faced an issue when wanting to perform a redirection with redirect attributes on a Spring Webflux application.

In Spring MVC, I used to add the RedirectAttributes parameter in my controller methods to configure the attributes/flash attributes that I wanted to transmit through my redirection.

However, in Spring Webflux, there seems to be no equivalent to the Spring MVC RedirectAttributes class. This is a problem as Spring Webflux controllers should be able to perform redirections with attributes too.

I tried using the redirectTo method of the reactive Rendering API, that works to perform a redirection, but there's no way to transmit parameters here too. Maybe this API could evolve to include this possibility ? And do you have any workaround that could be used at the moment?

Thanks and regards,
Adrien


Affects: 5.0 RC3, 5.0 RC4, 5.0 GA

Reference URL: https://stackoverflow.com/questions/46474452/redirectattributes-not-working-with-spring-5

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions