Start a conversation

Help Center Search By Conversation ID

When searching in the the help center for a conversation ID, the search results do not include conversations. We 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 conversation link.


You need to append this code in the Footer template in your help center.

<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<script>
$(document).ready(function(){
if(window.location.href.indexOf("search") > -1)
{
var searchQuery = $('body > div.container > div.wrap.wrap--body.wrap--search > main > div > p > span').text().replace('”', '').replace('“', '');
if($.isNumeric( searchQuery ))
{
window.location = '/en-us/conversation/view/' + searchQuery;
}
}   
});
</script>
Choose files or drag and drop files
  1. Gurpreet Singh

  2. Posted
  3. Updated
Was this article helpful?
Yes
No