From 96172b2cda7f9f84cd071e46292b2e1439e0de5a Mon Sep 17 00:00:00 2001 From: Ino de Bruijn Date: Wed, 21 Feb 2024 09:53:14 -0500 Subject: [PATCH 1/2] Fix News Page redirect Fix https://github.com/cBioPortal/cbioportal/issues/10632. Use frontend's existing redirect logic: https://github.com/cBioPortal/cbioportal-frontend/pull/4342 --- src/main/java/org/cbioportal/WebAppConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/cbioportal/WebAppConfig.java b/src/main/java/org/cbioportal/WebAppConfig.java index f721fbd11eb..25bfc5bf53d 100644 --- a/src/main/java/org/cbioportal/WebAppConfig.java +++ b/src/main/java/org/cbioportal/WebAppConfig.java @@ -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)); From d48fd53d0a61b2980167ccb2f89eb7bb5fe7f41a Mon Sep 17 00:00:00 2001 From: Ino de Bruijn Date: Wed, 21 Feb 2024 11:37:33 -0500 Subject: [PATCH 2/2] remove comment re redirect --- src/main/java/org/cbioportal/WebAppConfig.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/org/cbioportal/WebAppConfig.java b/src/main/java/org/cbioportal/WebAppConfig.java index 25bfc5bf53d..02296633c05 100644 --- a/src/main/java/org/cbioportal/WebAppConfig.java +++ b/src/main/java/org/cbioportal/WebAppConfig.java @@ -60,7 +60,6 @@ public void addViewControllers(ViewControllerRegistry registry) { "/datasets**", "/ln**", "/webAPI**", - // redirect of custom news pages is handled by frontend "/news**" );