Skip to content

Apache Lucene open-source search software

make URLs relative

Yonik Seeleyd87b93c1c5a6
diff --git a/src/webapp/resources/admin/action.jsp b/src/webapp/resources/admin/action.jsp
index aabe11891dc..98cc71ecf0f 100644
--- a/src/webapp/resources/admin/action.jsp
+++ b/src/webapp/resources/admin/action.jsp
@@ -106,12 +106,12 @@
%>
<html>
<head>
- <link rel="stylesheet" type="text/css" href="/admin/solr-admin.css">
- <link rel="icon" href="/favicon.ico" type="image/ico">
- <link rel="shortcut icon" href="/favicon.ico" type="image/ico">
+ <link rel="stylesheet" type="text/css" href="solr-admin.css">
+ <link rel="icon" href="favicon.ico" type="image/ico">
+ <link rel="shortcut icon" href="favicon.ico" type="image/ico">
</head>
<body>
-<a href="/admin/"><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
+<a href=""><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
<h1>SOLR Action (<%= collectionName %>) - <%= action %></h1>
<%= hostname %> : <%= request.getServerPort() %>
<br clear="all">
@@ -151,6 +151,6 @@
</tr>
</table>
<br><br>
- <a href="/admin">Return to Admin Page</a>
+ <a href="">Return to Admin Page</a>
</body>
</html>
diff --git a/src/webapp/resources/admin/analysis.jsp b/src/webapp/resources/admin/analysis.jsp
index b592ddc094a..cf81339f626 100644
--- a/src/webapp/resources/admin/analysis.jsp
+++ b/src/webapp/resources/admin/analysis.jsp
@@ -92,14 +92,14 @@
<html>
<head>
-<link rel="stylesheet" type="text/css" href="/admin/solr-admin.css">
-<link rel="icon" href="/favicon.ico" type="image/ico">
-<link rel="shortcut icon" href="/favicon.ico" type="image/ico">
+<link rel="stylesheet" type="text/css" href="solr-admin.css">
+<link rel="icon" href="favicon.ico" type="image/ico">
+<link rel="shortcut icon" href="favicon.ico" type="image/ico">
<title>SOLR Interface</title>
</head>
<body>
-<a href="/admin/"><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
+<a href=""><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
<h1>SOLR Interface (<%= collectionName %>) - <%= enabledStatus %></h1>
<%= hostname %> : <%= request.getServerPort() %>
<br clear="all">
@@ -107,7 +107,7 @@
<h2>Field Analysis</h2>
-<form method="GET" action="/admin/analysis.jsp">
+<form method="GET" action="analysis.jsp">
<table>
<tr>
<td>
diff --git a/src/webapp/resources/admin/distributiondump.jsp b/src/webapp/resources/admin/distributiondump.jsp
index b710fc9c46e..844a78d3fc4 100644
--- a/src/webapp/resources/admin/distributiondump.jsp
+++ b/src/webapp/resources/admin/distributiondump.jsp
@@ -105,12 +105,12 @@
%>
<html>
<head>
- <link rel="stylesheet" type="text/css" href="/admin/solr-admin.css">
- <link rel="icon" href="/favicon.ico" type="image/ico">
- <link rel="shortcut icon" href="/favicon.ico" type="image/ico">
+ <link rel="stylesheet" type="text/css" href="solr-admin.css">
+ <link rel="icon" href="favicon.ico" type="image/ico">
+ <link rel="shortcut icon" href="favicon.ico" type="image/ico">
</head>
<body>
-<a href="/admin/"><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
+<a href=""><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
<h1>SOLR Distribution Info (<%= collectionName %>)</h1>
<%= hostname %> : <%= port.toString() %>
<br clear="all">
@@ -136,6 +136,6 @@
<%= buffer %>
</table>
<br><br>
- <a href="/admin">Return to Admin Page</a>
+ <a href="">Return to Admin Page</a>
</body>
</html>
diff --git a/src/webapp/resources/favicon.ico b/src/webapp/resources/admin/favicon.ico
similarity index 100%
rename from src/webapp/resources/favicon.ico
rename to src/webapp/resources/admin/favicon.ico
diff --git a/src/webapp/resources/admin/form.jsp b/src/webapp/resources/admin/form.jsp
index 4d8ff74dfd3..53e64589257 100644
--- a/src/webapp/resources/admin/form.jsp
+++ b/src/webapp/resources/admin/form.jsp
@@ -85,14 +85,14 @@
<html>
<head>
-<link rel="stylesheet" type="text/css" href="/admin/solr-admin.css">
-<link rel="icon" href="/favicon.ico" type="image/ico">
-<link rel="shortcut icon" href="/favicon.ico" type="image/ico">
+<link rel="stylesheet" type="text/css" href="solr-admin.css">
+<link rel="icon" href="favicon.ico" type="image/ico">
+<link rel="shortcut icon" href="favicon.ico" type="image/ico">
<title>SOLR Interface</title>
</head>
<body>
-<a href="/admin/"><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
+<a href=""><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
<h1>SOLR Interface (<%= collectionName %>) - <%= enabledStatus %></h1>
<%= hostname %> : <%= port.toString() %>
<br clear="all">
@@ -100,7 +100,7 @@
<h2>/select mode</h2>
-<form method="GET" action="/select/">
+<form method="GET" action="../select">
<table>
<tr>
<td>
diff --git a/src/webapp/resources/admin/index.jsp b/src/webapp/resources/admin/index.jsp
index 0d4097fe68e..aa93be7303d 100644
--- a/src/webapp/resources/admin/index.jsp
+++ b/src/webapp/resources/admin/index.jsp
@@ -87,14 +87,14 @@
<html>
<head>
-<link rel="stylesheet" type="text/css" href="/admin/solr-admin.css">
-<link rel="icon" href="/favicon.ico" type="image/ico"></link>
- <link rel="shortcut icon" href="/favicon.ico" type="image/ico"></link>
+<link rel="stylesheet" type="text/css" href="solr-admin.css">
+<link rel="icon" href="favicon.ico" type="image/ico"></link>
+ <link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
<title>SOLR admin page</title>
</head>
<body>
-<a href="/admin/"><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
+<a href=""><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
<h1>SOLR Admin (<%= collectionName %>) - <%= enabledStatus %></h1>
<%= hostname %> : <%= port.toString() %>
<br clear="all">
@@ -105,18 +105,18 @@
<h3>SOLR</h3>
</td>
<td>
- [<a href="/admin/solar-status">Status</a>]
- [<a href="/admin/get-file.jsp?file=solrconfig.xml">Config</a>]
- [<a href="/admin/get-file.jsp?file=conf/solar/WEB-INF/web.external.xml">web.external.xml</a>]
- [<a href="/admin/get-properties.jsp">Properties</a>]
- [<a href="/admin/raw-schema.jsp">Schema</a>]
- [<a href="/admin/analysis.jsp?highlight=on">Analysis</a>]
+ [<a href="solar-status">Status</a>]
+ [<a href="get-file.jsp?file=solrconfig.xml">Config</a>]
+ [<a href="get-file.jsp?file=conf/solar/WEB-INF/web.external.xml">web.external.xml</a>]
+ [<a href="get-properties.jsp">Properties</a>]
+ [<a href="raw-schema.jsp">Schema</a>]
+ [<a href="analysis.jsp?highlight=on">Analysis</a>]
<br>
- [<a href="/admin/registry.jsp">Info</a>]
- [<a href="/admin/stats.jsp">Statistics</a>]
- [<a href="/admin/distributiondump.jsp">Distribution</a>]
- [<a href="/admin/ping">Ping</a>]
- [<a href="/admin/logging.jsp">Logging</a>]
+ [<a href="registry.jsp">Info</a>]
+ [<a href="stats.jsp">Statistics</a>]
+ [<a href="distributiondump.jsp">Distribution</a>]
+ [<a href="ping">Ping</a>]
+ [<a href="logging.jsp">Logging</a>]
</td>
</tr>
@@ -126,16 +126,16 @@
</td>
<td>
[<a href="/server-status">Status</a>]
- [<a href="/admin/get-file.jsp?file=conf/resin.conf">Config</a>]
- [<a href="/admin/threaddump.jsp">Thread Dump</a>]
+ [<a href="get-file.jsp?file=conf/resin.conf">Config</a>]
+ [<a href="threaddump.jsp">Thread Dump</a>]
<%
if (isEnabled) {
%>
- [<a href="/admin/action.jsp?action=Disable">Disable</a>]
+ [<a href="action.jsp?action=Disable">Disable</a>]
<%
} else {
%>
- [<a href="/admin/action.jsp?action=Enable">Enable</a>]
+ [<a href="action.jsp?action=Enable">Enable</a>]
<%
}
%>
@@ -164,7 +164,7 @@
<td>
<td>
- [<a href="/admin/form.jsp">Full Interface</a>]
+ [<a href="form.jsp">Full Interface</a>]
</td>
</tr>
<tr>
@@ -172,7 +172,7 @@
StyleSheet:<br>Query:
</td>
<td colspan=2>
- <form method="GET" action="/select/">
+ <form method="GET" action="../select/">
<input name="stylesheet" type="text" value=""><br>
<textarea rows="4" cols="40" name="q"><%= defaultSearch %></textarea>
<input name="version" type="hidden" value="2.0">
diff --git a/src/webapp/resources/admin/logging.jsp b/src/webapp/resources/admin/logging.jsp
index 3050c9e098c..9a5875449ed 100644
--- a/src/webapp/resources/admin/logging.jsp
+++ b/src/webapp/resources/admin/logging.jsp
@@ -48,12 +48,12 @@
%>
<html>
<head>
- <link rel="stylesheet" type="text/css" href="/admin/solr-admin.css">
- <link rel="icon" href="/favicon.ico" type="image/ico">
- <link rel="shortcut icon" href="/favicon.ico" type="image/ico">
+ <link rel="stylesheet" type="text/css" href="solr-admin.css">
+ <link rel="icon" href="favicon.ico" type="image/ico">
+ <link rel="shortcut icon" href="favicon.ico" type="image/ico">
</head>
<body>
-<a href="/admin/"><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
+<a href=""><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
<h1>SOLR Logging (<%= collectionName %>)</h1>
<%= hostname %> : <%= port.toString() %>
<br clear="all">
@@ -101,6 +101,6 @@
</tr>
</table>
<br><br>
- <a href="/admin">Return to Admin Page</a>
+ <a href="">Return to Admin Page</a>
</body>
</html>
diff --git a/src/webapp/resources/admin/registry.jsp b/src/webapp/resources/admin/registry.jsp
index df97b724851..1e236fce25c 100644
--- a/src/webapp/resources/admin/registry.jsp
+++ b/src/webapp/resources/admin/registry.jsp
@@ -10,7 +10,7 @@
<%@ page import="java.util.Map"%>
<%@ page contentType="text/xml;charset=UTF-8" language="java" %>
-<?xml-stylesheet type="text/xsl" href="/admin/registry.xsl"?>
+<?xml-stylesheet type="text/xsl" href="registry.xsl"?>
<%
SolrCore core = SolrCore.getSolrCore();
diff --git a/src/webapp/resources/admin/registry.xsl b/src/webapp/resources/admin/registry.xsl
index 04bc86b61e9..ebc4ef16454 100644
--- a/src/webapp/resources/admin/registry.xsl
+++ b/src/webapp/resources/admin/registry.xsl
@@ -19,14 +19,14 @@
<xsl:template match="/">
<html>
<head>
- <link rel="stylesheet" type="text/css" href="/admin/solr-admin.css"></link>
+ <link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
<link rel="icon" href="/favicon.ico" type="image/ico"></link>
<link rel="shortcut icon" href="/favicon.ico" type="image/ico"></link>
<title>SOLR Info</title>
</head>
<body>
- <a href="/admin/">
- <img border="0" align="right" height="88" width="215" src="/admin/solr-head.gif" alt="SOLR">
+ <a href="">
+ <img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR">
</img>
</a>
<h1>SOLR Info (<xsl:value-of select="solr/schema" />)</h1>
@@ -34,7 +34,7 @@
<br clear="all" />
<xsl:apply-templates/>
<br /><br />
- <a href="/admin">Return to Admin Page</a>
+ <a href="">Return to Admin Page</a>
</body>
</html>
</xsl:template>
diff --git a/src/webapp/resources/admin/solar-status.jsp b/src/webapp/resources/admin/solar-status.jsp
index 7343c0d58ed..4cf67a59839 100644
--- a/src/webapp/resources/admin/solar-status.jsp
+++ b/src/webapp/resources/admin/solar-status.jsp
@@ -13,7 +13,7 @@
--%>
<%@ page contentType="text/xml;charset=UTF-8" language="java" %>
-<?xml-stylesheet type="text/xsl" href="/admin/status.xsl"?>
+<?xml-stylesheet type="text/xsl" href="status.xsl"?>
<%
SolrCore core = SolrCore.getSolrCore();
diff --git a/src/webapp/resources/admin/stats.jsp b/src/webapp/resources/admin/stats.jsp
index 607140374e6..c07b95712fd 100644
--- a/src/webapp/resources/admin/stats.jsp
+++ b/src/webapp/resources/admin/stats.jsp
@@ -10,7 +10,7 @@
<%@ page import="java.util.Map"%>
<%@ page contentType="text/xml;charset=UTF-8" language="java" %>
-<?xml-stylesheet type="text/xsl" href="/admin/stats.xsl"?>
+<?xml-stylesheet type="text/xsl" href="stats.xsl"?>
<%
SolrCore core = SolrCore.getSolrCore();
diff --git a/src/webapp/resources/admin/stats.xsl b/src/webapp/resources/admin/stats.xsl
index b0188c2c38f..2256a01d0d6 100644
--- a/src/webapp/resources/admin/stats.xsl
+++ b/src/webapp/resources/admin/stats.xsl
@@ -19,14 +19,14 @@
<xsl:template match="/">
<html>
<head>
- <link rel="stylesheet" type="text/css" href="/admin/solr-admin.css"></link>
+ <link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
<link rel="icon" href="/favicon.ico" type="image/ico"></link>
<link rel="shortcut icon" href="/favicon.ico" type="image/ico"></link>
<title>SOLR Statistics</title>
</head>
<body>
- <a href="/admin/">
- <img border="0" align="right" height="88" width="215" src="/admin/solr-head.gif" alt="SOLR">
+ <a href="">
+ <img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR">
</img>
</a>
<h1>SOLR Statistics (<xsl:value-of select="solr/schema" />)</h1>
@@ -34,7 +34,7 @@
<br clear="all" />
<xsl:apply-templates/>
<br /><br />
- <a href="/admin">Return to Admin Page</a>
+ <a href="">Return to Admin Page</a>
</body>
</html>
</xsl:template>
diff --git a/src/webapp/resources/admin/status.xsl b/src/webapp/resources/admin/status.xsl
index e0794c1e011..f1d67b517db 100644
--- a/src/webapp/resources/admin/status.xsl
+++ b/src/webapp/resources/admin/status.xsl
@@ -18,14 +18,14 @@
<xsl:template match="/">
<html>
<head>
- <link rel="stylesheet" type="text/css" href="/admin/solr-admin.css"></link>
+ <link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
<link rel="icon" href="/favicon.ico" type="image/ico"></link>
<link rel="shortcut icon" href="/favicon.ico" type="image/ico"></link>
<title>SOLR Status</title>
</head>
<body>
- <a href="/admin/">
- <img border="0" align="right" height="88" width="215" src="/admin/solr-head.gif" alt="SOLR">
+ <a href="">
+ <img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR">
</img>
</a>
<h1>SOLR Status (<xsl:value-of select="solr/schema" />)</h1>
@@ -33,7 +33,7 @@
<br clear="all" />
<xsl:apply-templates/>
<br /><br />
- <a href="/admin">Return to Admin Page</a>
+ <a href="">Return to Admin Page</a>
</body>
</html>
</xsl:template>
diff --git a/src/webapp/resources/admin/tabular.xsl b/src/webapp/resources/admin/tabular.xsl
index c11ddd80c91..8b01adacc33 100644
--- a/src/webapp/resources/admin/tabular.xsl
+++ b/src/webapp/resources/admin/tabular.xsl
@@ -20,21 +20,21 @@
<xsl:template match="/">
<html>
<head>
- <link rel="stylesheet" type="text/css" href="/admin/solr-admin.css"></link>
+ <link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
<link rel="icon" href="/favicon.ico" type="image/ico"></link>
<link rel="shortcut icon" href="/favicon.ico" type="image/ico"></link>
<title>SOLR Search Results</title>
</head>
<body>
- <a href="/admin/">
- <img border="0" align="right" height="88" width="215" src="/admin/solr-head.gif" alt="SOLR">
+ <a href="">
+ <img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR">
</img>
</a>
<h1>SOLR Search Results</h1>
<br clear="all" />
<xsl:apply-templates/>
<br /><br />
- <a href="/admin">Return to Admin Page</a>
+ <a href="">Return to Admin Page</a>
</body>
</html>
</xsl:template>
diff --git a/src/webapp/resources/admin/threaddump.jsp b/src/webapp/resources/admin/threaddump.jsp
index 51df1de7c12..4a4db4ca5fe 100644
--- a/src/webapp/resources/admin/threaddump.jsp
+++ b/src/webapp/resources/admin/threaddump.jsp
@@ -40,12 +40,12 @@
%>
<html>
<head>
- <link rel="stylesheet" type="text/css" href="/admin/solr-admin.css">
- <link rel="icon" href="/favicon.ico" type="image/ico">
- <link rel="shortcut icon" href="/favicon.ico" type="image/ico">
+ <link rel="stylesheet" type="text/css" href="solr-admin.css">
+ <link rel="icon" href="favicon.ico" type="image/ico">
+ <link rel="shortcut icon" href="favicon.ico" type="image/ico">
</head>
<body>
-<a href="/admin/"><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
+<a href=""><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
<h1>SOLR Thread Dump (<%= collectionName %>)</h1>
<%= hostname %> : <%= port.toString() %>
<br clear="all">
@@ -100,7 +100,7 @@ Thread Dumps
<td>
</td>
<td>
- [<a href=/admin/get-file.jsp?file=logs/jvm.log>All Entries</a>]
+ [<a href=get-file.jsp?file=logs/jvm.log>All Entries</a>]
</td>
</tr>
<tr>
@@ -113,6 +113,6 @@ Thread Dumps
</tr>
</table>
<br><br>
- <a href="/admin">Return to Admin Page</a>
+ <a href="">Return to Admin Page</a>
</body>
</html>