Iframe inside tabs is causing all links on page to "_blank" target

Hello,

i created a page with the tabs element, it has 3 tabs each with an iframe inside it.

it works well, but the problem is that on that page only, all links on the page “outside” the iframes are opening new tabs when clicked.

Here is the link:
https://basexpro.kodeserver.net/news/archivio-storico-rassegne-stampa/

Can you help please?

Hello Brigham,

Thanks for writing in! I have investigated the page and it turns out that you have inserted a broken code. You have inserted these:

<base target="_blank">
<iframe src="https://docs.cisal.org/rassegna-stampa/2017/" height="500" allowfullscreen="true">
  <p>Il tuo browser non supporta gli iframe.</p>
</iframe>
<base target="_blank">
<iframe src="https://docs.cisal.org/rassegna-stampa/2016/" height="500" allowfullscreen="true">
  <p>Il tuo browser non supporta gli iframe.</p>
</iframe>
<base target="_blank">
<iframe src="https://docs.cisal.org/rassegna-stampa/2015/" height="500" allowfullscreen="true">
  <p>Il tuo browser non supporta gli iframe.</p>
</iframe>

Your should close the <base> tag. For example:

<base target="_blank">
<iframe src="https://docs.cisal.org/rassegna-stampa/2017/" height="500" allowfullscreen="true">
  <p>Il tuo browser non supporta gli iframe.</p>
</iframe>
</base>

It could also be caused by a plugin conflict, amongst other things. Please check out this troubleshooting article here and follow the instructions for the following sections (where appropriate):

  • Testing for Plugin Conflict
  • CSS/JS Customization
  • Disabling Cache
  • Disabling CDN

Please let us know if this works out for you.

1 Like

Thanks, removing the BASE tag worked, i never used that tag before and the code provided by mozilla did not close it.
esample:
https://developer.mozilla.org/it/docs/Web/HTML/Element/iframe#Esempi

I appreciate your help very much! 5 stars and kudos!
Have a nice day.

Hello Brigham,

Glad to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.