• Resolved juliamb

    (@juliamb)


    Hi!

    I’m having a weird issue with links inside the iframes generated when embedding content inside a post, (the embedded content is from the same site). If I click on the title link nothing happens and in order to open that link, I have to do it in a new tab.

    I’ve checked the browser console and found this error:
    Unsafe JavaScript attempt to initiate navigation for frame with URL 'https://mywebsite.com/post1/' from frame with URL 'https://mywebsite.com/post2/embed/#?secret=NfElQnkycU'. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.

    Since the iframe code is generated code, how can I solve this issue?

    Thanks, regards!

Viewing 1 replies (of 1 total)
  • Thread Starter juliamb

    (@juliamb)

    Hello there.

    I solved this, I leave the solution here just in case someone needs it in the future: I had the Smush plugin installed with the Lazy Load option activated. I had to deactivate this option for iframe elements, so one of the .js file from this plugin doesn’t load, because it was preventing the default behavior of the links.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Links inside oembed iframe not working’ is closed to new replies.