[tor-commits] [webwml/master] Add redirect for youtube embed

hiro at torproject.org hiro at torproject.org
Thu Dec 21 15:18:46 UTC 2017


commit 8bb696171d1e61fe1bc8396315fefa85b6a5051a
Author: hiromipaw <hiro at torproject.org>
Date:   Thu Dec 21 13:31:02 2017 +0100

    Add redirect for youtube embed
---
 .htaccess                 | 2 ++
 en/averyonionthankyou.wml | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.htaccess b/.htaccess
index 86a523e0..21386d6f 100644
--- a/.htaccess
+++ b/.htaccess
@@ -84,6 +84,8 @@ RewriteRule ^donate/donor-faq(.*) https://donate.torproject.org/donor-faq [R=302
 RewriteRule ^donate/donor-privacy-policy(.*) https://donate.torproject.org/privacy-policy [R=302,L]
 RewriteRule ^donate/thankyou(.*) https://donate.torproject.org/thank-you [R=302,L]
 RewriteRule ^thankyou(.*) https://donate.torproject.org/thank-you [R=302,L]
+RewriteRule ^averyonionthankyou(.*) /averyonionthankyou.html.en [R=302,L]
+RewriteRule ^embed/onionvideo(.*) https://www.youtube.com/embed/TXT0F7p7WbM [R=302,L]
 
 # The following redirect is necessary because we're using that URL on
 # some external resources (the donate infrastructure in particular) and
diff --git a/en/averyonionthankyou.wml b/en/averyonionthankyou.wml
index 777be5e8..62ddb5a3 100644
--- a/en/averyonionthankyou.wml
+++ b/en/averyonionthankyou.wml
@@ -1,7 +1,7 @@
 #include "head.wmi" TITLE="Tor Project | Privacy Online" CHARSET="UTF-8" DONATION_BANNER="true"
 
 <div id="home">
-<iframe width="560" height="315" src="https://www.youtube.com/embed/TXT0F7p7WbM" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>
+<iframe width="560" height="315" src="embed/onionvideo" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>
 </div>
 
 #include <foot.wmi>
\ No newline at end of file





More information about the tor-commits mailing list