loadLinksWithinModal usage problems
On Plone 5.1b4.
If i correctly understand, if this option is true (default), if i click on a link in the modal, the result page is loaded inside the modal. if it's false, the modal is closed and the user is redirected to that link.
If i configure a modal in a template with pat-plone-modal like this:
<a class="pat-plone-modal" href="${context/portal_url}/my-url">A link</a>
if in the page there are some links, clicking on them will redirect the user.
If i initialize the modal in a custom javascript like this:
$('a.my-selecto').each(function() {
var modal = new Modal($(this), {
content: '#content-core',
loadLinksWithinModal: false,
});
});
links are always loaded inside the modal. The pattern seems ignore loadLinksWithinModal value. I've also tried to enable the pattern in development mode and change its default, but nothing changed.
Am i doing something wrong or there is some bug somewhere that i can't find in the pattern?