[Rt-commit] rt branch, 4.4/article-quick-search-redirect, created. rt-4.4.1-215-ge0ff4c4
Dave Goehrig
dave at bestpractical.com
Tue Jan 3 11:22:51 EST 2017
The branch, 4.4/article-quick-search-redirect has been created
at e0ff4c457ef2cadca0e11b22d259deed5cbeba0b (commit)
- Log -----------------------------------------------------------------
commit e0ff4c457ef2cadca0e11b22d259deed5cbeba0b
Author: Dave Goehrig <dave at bestpractical.com>
Date: Tue Jan 3 11:22:35 2017 -0500
Change quicksearch to redirect rather than display inline
diff --git a/share/html/Articles/Article/Search.html b/share/html/Articles/Article/Search.html
index 19c4312..cdbb1bd 100644
--- a/share/html/Articles/Article/Search.html
+++ b/share/html/Articles/Article/Search.html
@@ -137,7 +137,7 @@ my $format = q{
# If it is a number, load the article with that ID. Otherwise, search
# on name and summary.
if ($ARGS{'q'} && $ARGS{'q'} =~ /^(\d+)$/) {
- return $m->comp("/Articles/Article/Display.html", id => $1);
+ RT::Interface::Web::Redirect( RT->Config->Get('WebURL') . "Articles/Article/Display.html?id=" . $1 );
}
# }}}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list