Welcome To Our Customer Service Portal

How to prevent support Center with iframe from opening without the hosting page parent

The iframe URL is different from the page in which the iframe is displayed.

In some cases, you would like not to use the iframe domain directly.

The default behavior of the system allows users to use a direct link to the iframe URL, unless coming from google.

If you would like to prevent using the direct iframe URL in all cases, please follow these steps:

Step 1: 

Make sure that you are running iframe files version 2 and up, (files that ends with v2,v3 etc...) If not, then please approach our support to help you with upgrading to latest version

Step 2:

Make sure that in the Nanorep Console->Guided Journeys->Support Center->Settings-> the URL is indeed the URL of the page that uses the iframe and is used as the support center page. This is the address that is used in cases when redirect will be necessary.

Step 3:

Make sure that in the Nanorep Console->Guided Journeys->Support Center->Templates->master template please find the function: iframeHelper and add the set dontAllowJustiframe:true inside the curls, so for example if you have the function 

window.iframeHlpr=new iframeHelper({parentURL:"<%Site.MainSiteUrl%>",iframeBasicURL:"<% Site.Domain %>"});

It should look like this now:

window.iframeHlpr=new iframeHelper({parentURL:"<%Site.MainSiteUrl%>",iframeBasicURL:"<% Site.Domain %>", dontAllowJustiframe:true});