commit | cf8240a6a724548a8d58a9c9f0ad9cf648698d2a | [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 | cd169b2cd64d9876bbc7c7756064681ecc98684b [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( "/" ) )