[iframe] YouTube video not available : "Watch on YouTube" link does not work either

Steps to reproduce

When YouTube video does not allow embedding (such as the one just below), there is anyway a link to “Watch on YouTube”. Clicking on this link should redirect to YouTube so that we can finally watch the content.

<iframe width="560" height="315" src="https://www.youtube.com/embed/wtHra9tFISY?start=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Expected result

Clicking on this link should redirect to YouTube so that we can finally watch the content.

Actual result

Clicking on the link show the following error message in the console :

Blocked opening 'http://www.youtube.com/watch?v=wtHra9tFISY' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.

Environment

  • Operating system: Windows 10
  • Obsidian: 0.13.23

I am not sure I consider this a bug. Open a FR.

Thank you, the FR has been created.