summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-05-07 20:50:55 -0500
committerOmar Roth <omarroth@hotmail.com>2018-05-07 20:50:55 -0500
commit0e85a04761756b78392698891db9ed4e29ed57e9 (patch)
tree70c1255111794442244645fcd3b69d0ca4b906cb
parent75f8fcd40b2a3bd8209e0aa44e82ff6fe431ec5c (diff)
downloadinvidious-0e85a04761756b78392698891db9ed4e29ed57e9.tar.gz
invidious-0e85a04761756b78392698891db9ed4e29ed57e9.tar.bz2
invidious-0e85a04761756b78392698891db9ed4e29ed57e9.zip
Fix alt linkfor youtu.be urls
-rw-r--r--src/helpers.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 4c9a0ece..8026f472 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -487,7 +487,7 @@ def add_alt_links(html)
END_HTML
elsif url.host == "youtu.be"
alt_link = <<-END_HTML
- <a href="/watch?v=#{url.full_path.lchop("/")}">
+ <a href="/watch?v=#{url.path.try &.lchop("/")}&#{url.query}">
<i class="fa fa-link" aria-hidden="true"></i>
</a>
END_HTML