]> source.dussan.org Git - archiva.git/commitdiff
[MRM-845]
authorMaria Odea B. Ching <oching@apache.org>
Fri, 20 Jun 2008 01:47:44 +0000 (01:47 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Fri, 20 Jun 2008 01:47:44 +0000 (01:47 +0000)
submitted by Maria Catherine Tan

-fix 'page isn't redirecting properly' when repo group link is clicked

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@669762 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java

index 0b2fc0a12fea10c3951a1211d5cb827c1c180412..1914be4aad9a99546930f5dcb981fdb403858fc8 100644 (file)
@@ -746,7 +746,7 @@ public class ArchivaDavResourceFactory
             new ArchivaVirtualDavResource( mergedRepositoryContents, logicalResource.getPath(), mimeTypes, locator, this );
        
         // compatibility with MRM-440 to ensure browsing the repository group works ok
-        if ( resource.isCollection() && !resource.getLocator().getResourcePath().endsWith( "/" ) )
+        if ( resource.isCollection() && !request.getRequestURI().endsWith("/" ) )
         {
             throw new BrowserRedirectException( resource.getHref() );
         }