Overlay FAQs & Common issues

If you are experiencing any issue that is not related with the list below, please contact EmpathyBroker Support.

HTML links (<a> tag) are not redirecting

Cause

We have configured the $locationProvider to html5Mode. 

bootstrap.js
$locationProvider.html5Mode({
  enabled: true,
  requireBase: false
});

Solution

We must force it to always go to the URL by adding target="_self" to the tag.

<a id="eb-logo" href="/" target="_self"></a>

The Overlay doesn't work in a CMS

Cause

Some CMS, like Magento 2, use RequireJS to load scripts. This causes that the Overlay JavaScript resources are not properly loaded or not loaded on time, so the Overlay cannot initialize.

Solution

One workaround is to open the Overlay in a separate URL (in a new page) where RequireJS is disabled. Another solution is wrapping the Overlay element with an HTML IFrame so it is loaded as a standalone page.