Skip to main content
All CollectionsPolicies
Why are the hyperlinks not working in my 'code snippet' embedded policy?
Why are the hyperlinks not working in my 'code snippet' embedded policy?
Updated over 6 months ago

In some cases, Termly users who embed their policy using the code snippet format may encounter a situation where hyperlinks in a Termly policy do not redirect to the dedicated paragraphs within the document. This condition might manifest with the following error:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://app.termly.io') does not match the recipient window's origin

In most instances, this issue occurs due to an incorrect installation of the Termly code snippet.

Recommended Solution

If you encounter this issue, please refer back to the original embed code snippet found in your Termly dashboard and add it to your page again. It should look something like this:

<div name="termly-embed" data-id="1234"></div> <script type="text/javascript"> ... </script>

If the issue persists, examine the embed code on your webpage and ensure that the <div> tag is placed before the <script> tag (as per the original snippet), and that nothing else on the page is interfering with the order of the Termly snippet.

Seek assistance if required. Should the issue persist or if you are uncertain about the solution, please reach out to Termly support.

Did this answer your question?