Question
RH Classic 2019: On specific user machine, clicking on CS help link is opening the UI again in new window.
- On a random machine, clicking CS help from any page opens a new window and the UI is opened again in a newly launched window instead of the Help doc.
- On debugging, it is found that the randomly generated UI installation ID of this machine has the string 'bc-' in it. Due to this, the code below, present in .htm files, opens an incorrect URL when the CS link is clicked.
if (window.gbWhTopic)
{
var strUrl = decodeURI(document.location.href);
var bc = 0;
var n = strUrl.toLowerCase().indexOf("bc-");
if(n != -1)
{ document.location.replace(strUrl.substring(0, n)); bc = strUrl.substring(n+3); }
The UI installation ID is 937ade1c-baad-4ae7-babc-c42fdd218d78
- We need find some way so that the var n = strUrl.toLowerCase().indexOf("bc-"); does not match the randomly generated installation ID.
- The installation ID is generated at the time of UI installation and cannot be changed.
