mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
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:
@@ -17,6 +17,7 @@ public class WebConfig implements WebMvcConfigurer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addViewControllers(ViewControllerRegistry registry) {
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user