commit | 7bb8224613a4449344e9df8af2b74e7d8f8df9e7 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Fri Jun 13 14:07:25 2008 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Fri Jun 13 14:07:25 2008 +0000 |
tree | 79dd27548fcf107402cde055cb9df92e17054973 | |
parent | 5611f019b796a4bf67b5f56cf5721dd99dc6e875 [diff] |
Redirect both /system/console and /system/console/ to the default page, otherwise /system/console/ would resolve to an empty label, for which no page exists. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@667547 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java index 170f876..421fedc 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
@@ -293,7 +293,7 @@ } // check whether we are not at .../{webManagerRoot} - if ( request.getPathInfo() == null ) + if ( request.getPathInfo() == null || request.getPathInfo().equals( "/" ) ) { String path = request.getRequestURI(); if ( !path.endsWith( "/" ) )