diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2023-09-14 22:10:02 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2023-09-14 22:28:07 +0200 |
| commit | 58f4a012b7fde782a83d6745f18c5d080f7ade6a (patch) | |
| tree | c46cbf507372998893955266b58c22e9654bc9bc /src | |
| parent | 2456b629365450970363e5cf0e9a65c1a24160ab (diff) | |
| download | invidious-58f4a012b7fde782a83d6745f18c5d080f7ade6a.tar.gz invidious-58f4a012b7fde782a83d6745f18c5d080f7ade6a.tar.bz2 invidious-58f4a012b7fde782a83d6745f18c5d080f7ade6a.zip | |
Frontend: Add timestamp on switch invidious instance links
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/watch.ecr | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index a768328a..bf297a43 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -127,11 +127,8 @@ we're going to need to do it here in order to allow for translations. </span> <p id="watch-on-another-invidious-instance"> - <% if env.get("preferences").as(Preferences).automatic_instance_redirect%> - <a href="/redirect?referer=<%= env.get?("current_page") %>"><%= translate(locale, "Switch Invidious Instance") %></a> - <% else %> - <a href="https://redirect.invidious.io<%= env.request.resource %>"><%= translate(locale, "Switch Invidious Instance") %></a> - <% end %> + <%- link_iv_other = IV::Frontend::Misc.redirect_url(env) -%> + <a id="link-iv-other" data-base-url="<%= link_iv_other %>" href="<%= link_iv_other %>"><%= translate(locale, "Switch Invidious Instance") %></a> </p> <p id="embed-link"> |
