Skip to content

Commit

Permalink
Fix News Page redirect
Browse files Browse the repository at this point in the history
Fix #10632. Use frontend's existing redirect logic: cBioPortal/cbioportal-frontend#4342
  • Loading branch information
inodb authored Feb 21, 2024
1 parent c73883f commit 96172b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/cbioportal/WebAppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public void addViewControllers(ViewControllerRegistry registry) {
"/encodedRedirect",
"/datasets**",
"/ln**",
"/webAPI**"
"/webAPI**",
// redirect of custom news pages is handled by frontend
"/news**"
);

endpoints.forEach( route -> registry.addViewController(route).setViewName(SINGLE_PAGE_APP_ROOT));
Expand Down

0 comments on commit 96172b2

Please sign in to comment.