Skip to content

Commit 269d8b8

Browse files
committed
Fix search builder for non-root WebPath
$r->path_info doesn't include WebPath, so submitting the query builder form lands you on http://example.com/RTIR/Search/Results.html regardless of whether RT is hosted at /rt, /rtir, etc.
1 parent 8485c55 commit 269d8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/RTIR/Search/Elements/BuildQuery

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
%# XXX TODO - this really ought to use HREFTo, but to do that
5151
%# we'd need to strip off the RTIR UIR prefix
5252
<div class="search-form">
53-
<form method="post" action="<% $r->path_info %>" name="BuildQuery" id="BuildQuery">
53+
<form method="post" action="<% RT->Config->Get('WebPath') %><% $r->path_info %>" name="BuildQuery" id="BuildQuery">
5454
<input type="hidden" class="hidden" name="SavedSearchId" value="<% $saved_search{'Id'} %>" />
5555
<input type="hidden" class="hidden" name="ResultPage" value="<% $ResultPage %>" />
5656
<input type="hidden" class="hidden" name="BaseQuery" value="<% $BaseQuery %>" />

0 commit comments

Comments
 (0)