fix(launchers): update addViewController to correctly redirect to the front-end page when accessing the domain while logged in (#1981)

This commit is contained in:
yxm-coding
2024-12-27 15:35:50 +08:00
committed by GitHub
parent 0612833618
commit 3e1e5ae209

View File

@@ -17,6 +17,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("forward:/webapp/index.html");
registry.addViewController("/").setViewName("redirect:/webapp/");
registry.addViewController("/webapp/").setViewName("forward:/webapp/index.html");
}
}