Skip to content

Commit

Permalink
fix(#3829): error 404 is shown when /<context-path>/ is opened in bro…
Browse files Browse the repository at this point in the history
…wser
  • Loading branch information
SteKoe committed Dec 6, 2024
1 parent 6c0b879 commit 9ec4747
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<description>Spring Boot Admin</description>
<url>https://github.com/codecentric/spring-boot-admin/</url>
<properties>
<revision>3.4.1-SNAPSHOT</revision>
<revision>3.4.2-SNAPSHOT</revision>
<java.version>17</java.version>

<maven.compiler.source>${java.version}</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,11 @@ public HomepageForwardingFilterConfig homepageForwardingFilterConfig() throws IO

List<String> extensionRoutes = new UiRoutesScanner(this.applicationContext)
.scan(this.adminUi.getExtensionResourceLocations());
List<String> routesIncludes = Stream.concat(DEFAULT_UI_ROUTES.stream(), extensionRoutes.stream())
List<String> routesIncludes = Stream
.concat(DEFAULT_UI_ROUTES.stream(), Stream.concat(extensionRoutes.stream(), Stream.of("/")))
.map(this.adminServer::path)
.collect(Collectors.toList());

List<String> routesExcludes = Stream
.concat(DEFAULT_UI_ROUTE_EXCLUDES.stream(), this.adminUi.getAdditionalRouteExcludes().stream())
.map(this.adminServer::path)
Expand Down

0 comments on commit 9ec4747

Please sign in to comment.