Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Incorporate the prefixPath, if configured, on the forwards

Erik Hatcher5e04a269e6e7
diff --git a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
index f3c8335d94a..2a3f53d6443 100644
--- a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
+++ b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
@@ -304,7 +304,7 @@ public class SolrDispatchFilter implements Filter
req.setAttribute("org.apache.solr.SolrCore", core);
// Modify the request so each core gets its own /admin
if( singlecore == null && path.startsWith( "/admin" ) ) {
- req.getRequestDispatcher( path ).forward( request, response );
+ req.getRequestDispatcher( pathPrefix == null ? path : pathPrefix + path ).forward( request, response );
return;
}
}