Skip to content

Commit

Permalink
fix(launchers): update addViewController to correctly redirect to the…
Browse files Browse the repository at this point in the history
… front-end page when accessing the domain while logged in (#1981)
  • Loading branch information
yxm-coding authored Dec 27, 2024
1 parent 0612833 commit 3e1e5ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {

@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");
}
}

0 comments on commit 3e1e5ae

Please sign in to comment.