I'm encountering broken links (HTTP 404) problem with the Details and Metadata links associated to results returned on the Search results page. I've deployed Geoportal in a subfolder on Tomcat, which may relate to why I'm encountering this issue (details below on how I did this). When the links are rendered for the Details and Metadata links, the subfolder name is omitted from the URLs. However, the REST links (GEORSS, ATOM, HTML, FRAGMENT, KML, JSON, and CSV) all work correctly and contain the subfolder name.Example: Generated link for Details:http://myserver/geoportal/catalog/search/resource/details.page?uuid={4C9A7423-4B5C-4CBC-ABF5-783A12A94705}Example: Generated link for GEORSS:http://myserver/mysubfolder/geoportal/rest/find/document?start=1&max=10&f=georss&dojo.preventCache=1368037697509
How can I make the Details and Metadata links generate URLs that contain the subfolder name?Details of setup: I've deployed Geoportal v1.2.2 on Windows Server 2008 R2, MS Sql Server 2008 and Apache Tomcat 7. For this instance, I opted to install Geoportal in a 'subdirectory' of the Tomcat \webapps folder by renaming the geoportal.war file to mysubfolder#geoportal.war. When accessed, this resolves to http://myserver/mysubfolder/geoportal. This is also sitting behind a reverse proxy server, so I updated the gpt.xml config file so that the baseContextPath reflects the following:<parameter key="reverseProxy.baseContextPath" value="http://myserver/mysubfolder/geoportal"/>
Finally, I renamed \conf\Catalina\localhost\geoportal.xml to \conf\Catalina\localhost\mysubfolder#geoportal.xml to reflect the subfolder name and so that Geoportal can find the database connection info. I also updated mysubfolder#geoportal.xml to the following: <!-- Context configuration file for the Geoportal Web App -->
<Context docBase="mysubfolder#geoportal" path="/mysubfolder/geoportal" debug="0" reloadable="true" crossContext="true">
<Resource name="jdbc/gpt" auth="Container" type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://myserver:1433;databaseName=geoportal"
username="geoportal"
password="geoportalPassword"
maxActive="20"
maxIdle="10"
maxWait="-1" />
</Context>