When searching in the the help center for a ticket number, the search results do not include tickets. I came up with a quick way to redirect them on a search. It basically checks a failed search result to see if its a number and if it is, tries to redirect it to a ticket link.
*Requires jQuery
Edit the search_results.hbs file
Locate the placeholder for no search results: section should have something like {{t 'no_results' query=query}}
Paste in the following code
<script type="text/javascript">
$(document).ready(function(){
var searchQuery = $('.page-header-description').html().replace('No results for "', '').replace('"', '');
if($.isNumeric( searchQuery ))
{
window.location = '/hc/en-us/requests/' + searchQuery;
}
});
</script>
Hi Erin,
The above workaround is still the best way to allow search for ticket IDs in your help center.