Remove noreferrer since youtube now requires referrers on embeds (#5642)
Some checks are pending
Build and release container directly from master / release (docker/Dockerfile, AMD64, ubuntu-latest, linux/amd64, ) (push) Waiting to run
Build and release container directly from master / release (docker/Dockerfile.arm64, ARM64, ubuntu-24.04-arm, linux/arm64/v8, -arm64) (push) Waiting to run
Invidious CI / build - crystal: 1.14.1, stable: true (push) Waiting to run
Invidious CI / build - crystal: 1.15.1, stable: true (push) Waiting to run
Invidious CI / build - crystal: 1.16.3, stable: true (push) Waiting to run
Invidious CI / build - crystal: 1.17.1, stable: true (push) Waiting to run
Invidious CI / build - crystal: 1.18.2, stable: true (push) Waiting to run
Invidious CI / build - crystal: nightly, stable: false (push) Waiting to run
Invidious CI / Test AMD64 Docker build (push) Waiting to run
Invidious CI / Test ARM64 Docker build (push) Waiting to run
Invidious CI / lint (push) Waiting to run

* Remove noreferer since youtube now requires referers on embeds

* Update src/invidious/views/watch.ecr

---------

Co-authored-by: Fijxu <fijxu@nadeko.net>
This commit is contained in:
Ashley :3
2026-02-24 03:36:12 +03:00
committed by GitHub
parent fda8d1b528
commit 21d0d1041a

View File

@@ -125,7 +125,7 @@ we're going to need to do it here in order to allow for translations.
end
-%>
<a id="link-yt-watch" rel="noreferrer noopener" data-base-url="<%= link_yt_watch %>" href="<%= link_yt_watch %>"><%= translate(locale, "videoinfo_watch_on_youTube") %></a>
(<a id="link-yt-embed" rel="noreferrer noopener" data-base-url="<%= link_yt_embed %>" href="<%= link_yt_embed %>"><%= translate(locale, "videoinfo_youTube_embed_link") %></a>)
(<a id="link-yt-embed" rel="noopener" referrerpolicy="origin-when-cross-origin" data-base-url="<%= link_yt_embed %>" href="<%= link_yt_embed %>"><%= translate(locale, "videoinfo_youTube_embed_link") %></a>)
</span>
<p id="watch-on-another-invidious-instance">