$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

HTML Links (The <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 tag.

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


The Overlay not works in a CMS

Cause

Some CMS, like Magento V2, uses RequireJS to load scripts. This causes that the Overlay javascript resources are not properly load or not load on time, so the Overlay can not initialize.

Solution

The workaround we found was to open the overlay in a separate url (in a new page) where the requireJS is not running. Another solution was to wrap the overlay element with a HTML IFrame, but this could cause performance issues.

  • No labels