diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-05-07 20:50:55 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-05-07 20:50:55 -0500 |
| commit | 0e85a04761756b78392698891db9ed4e29ed57e9 (patch) | |
| tree | 70c1255111794442244645fcd3b69d0ca4b906cb | |
| parent | 75f8fcd40b2a3bd8209e0aa44e82ff6fe431ec5c (diff) | |
| download | invidious-0e85a04761756b78392698891db9ed4e29ed57e9.tar.gz invidious-0e85a04761756b78392698891db9ed4e29ed57e9.tar.bz2 invidious-0e85a04761756b78392698891db9ed4e29ed57e9.zip | |
Fix alt linkfor youtu.be urls
| -rw-r--r-- | src/helpers.cr | 2 |
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 |
