[Rt-commit] rtir branch, 4.0.0/search-webpath, created. 4.0.0rc2-11-g269d8b8

Shawn Moore shawn at bestpractical.com
Tue Jul 19 15:18:41 EDT 2016


The branch, 4.0.0/search-webpath has been created
        at  269d8b8dac99071533dfebe5d0ae0d027e371272 (commit)

- Log -----------------------------------------------------------------
commit 269d8b8dac99071533dfebe5d0ae0d027e371272
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Tue Jul 19 19:19:07 2016 +0000

    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.

diff --git a/html/RTIR/Search/Elements/BuildQuery b/html/RTIR/Search/Elements/BuildQuery
index 6dc433c..402e78c 100644
--- a/html/RTIR/Search/Elements/BuildQuery
+++ b/html/RTIR/Search/Elements/BuildQuery
@@ -50,7 +50,7 @@
 %# XXX TODO - this really ought to use HREFTo, but to do that
 %# we'd need to strip off the RTIR UIR prefix
 <div class="search-form">
-<form method="post" action="<% $r->path_info %>" name="BuildQuery" id="BuildQuery">
+<form method="post" action="<% RT->Config->Get('WebPath') %><% $r->path_info %>" name="BuildQuery" id="BuildQuery">
 <input type="hidden" class="hidden" name="SavedSearchId" value="<% $saved_search{'Id'} %>" />
 <input type="hidden" class="hidden" name="ResultPage" value="<% $ResultPage %>" />
 <input type="hidden" class="hidden" name="BaseQuery" value="<% $BaseQuery %>" />

-----------------------------------------------------------------------


More information about the rt-commit mailing list