- Repository URL uses `X-Forwarded-Proto` and `X-Forwarded-Port`, if available, for reverse proxy configurations (issue 115)\r
- Output real RAW content, not simulated RAW content (issue 114)\r
- Fixed Lucene charset encoding bug when reindexing a repository (issue 112)\r
+- Fixed search box linking to Lucene page for nested repository on Tomcat (issue 111)\r
- Fixed null pointer in LdapUserSerivce if account has a null email address (issue 110)\r
- Really fixed failure to update a GO setting from the manager (issue 85)\r
\r
import org.apache.wicket.markup.html.panel.Fragment;\r
import org.apache.wicket.model.IModel;\r
import org.apache.wicket.model.Model;\r
+import org.apache.wicket.protocol.http.RequestUtils;\r
+import org.apache.wicket.request.target.basic.RedirectRequestTarget;\r
import org.eclipse.jgit.diff.DiffEntry.ChangeType;\r
import org.eclipse.jgit.lib.PersonIdent;\r
import org.eclipse.jgit.lib.Repository;\r
// this repository is Lucene-indexed\r
searchPageClass = LuceneSearchPage.class;\r
}\r
- setResponsePage(searchPageClass,\r
- WicketUtils.newSearchParameter(repositoryName, null, searchString, searchType));\r
+ // use an absolute url to workaround Wicket-Tomcat problems with\r
+ // mounted url parameters (issue-111)\r
+ PageParameters params = WicketUtils.newSearchParameter(repositoryName, null, searchString, searchType);\r
+ String relativeUrl = urlFor(searchPageClass, params).toString();\r
+ String absoluteUrl = RequestUtils.toAbsolutePath(relativeUrl);\r
+ getRequestCycle().setRequestTarget(new RedirectRequestTarget(absoluteUrl));\r
}\r
}\r
}\r