Welcome to our Customer Service Portal

nanorep Interfaces

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, contact your Success Manager or Nanorep support to help you upgrade to the latest version.

Step 2:

Go to Nanorep Console > Guided Journeys > Support Center > Settings and make sure Main Site URL is indeed the URL of the page that uses the iframe and is used as the support center page. This address is used when redirect is necessary.

Step 3:

Go to Nanorep Console > Guided Journeys > Support Center >Page Templates > Master Page. Find the function iframeHelper and add the set dontAllowJustiframe:true inside the curls.

For example:

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


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