Skip to content

Commit

Permalink
return index.html when doc page is landed on before home page
Browse files Browse the repository at this point in the history
  • Loading branch information
bprize15 committed Jan 14, 2025
1 parent e7adb5a commit c2eba1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions web/src/main/java/org/mskcc/oncotree/OncotreeApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ public WebMvcConfigurer webMvcConfigurer() {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**");
}

@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/news")
.setViewName("forward:/index.html");
registry.addViewController("/mapping")
.setViewName("forward:/index.html");
registry.addViewController("/about")
.setViewName("forward:/index.html");
}
};
}

Expand Down

0 comments on commit c2eba1c

Please sign in to comment.