To change default redirect

Previously after logging in we used to get the desired index page, but the address bar still had the "/login" in the address bar, this code fixes that
This commit is contained in:
Vinay Mhatre 2023-10-11 18:26:22 +05:30 committed by GitHub
parent 03a3587560
commit 23124ab6f8
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public class SecurityConfiguration {
.formLogin() .formLogin()
.loginPage("/login") .loginPage("/login")
.permitAll() .permitAll()
.successForwardUrl("/index") .defaultSuccessUrl("/index")
.and() .and()
.logout() .logout()
.permitAll() .permitAll()