Start a conversation

Search from Help Center by Conversation ID

Overview

When searching in the help center for a conversation ID, the search results do not include conversations. The article details the solution to this issue.

Resolution

To resolve the issue detailed previously, We came up with a quick way to redirect the user on a search. It 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
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments