alexanoid
alexanoid

Reputation: 25852

Vaadin 'continue' url parameter

I noticed that sometimes Vaadin adds 'continue' parameter to the url, for example:

Redirecting to https://example.com/profile?continue&continue&continue&continue

What does this mean? And is it possible to disable such behavior?

Upvotes: 1

Views: 733

Answers (1)

Peter
Peter

Reputation: 66

I found a solution. As described above it comes form Springs HttpSessionRequestCache. It is a performance optimization feature and could be removed

Spring Boot 3.0.2 adds "continue" query parameter to request URL after login

@Bean
SecurityFilterChain springSecurity(HttpSecurity http) throws Exception {
    HttpSessionRequestCache requestCache = new HttpSessionRequestCache();
    requestCache.setMatchingRequestParameterName(null);
    http
        // ...
        .requestCache((cache) -> cache
            .requestCache(requestCache)
        );
    return http.build();
}

Upvotes: 4

Related Questions