Search code examples
vaadinvaadin-flowvaadin24

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?


Solution

  • 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();
    }