mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-11 01:27:53 +01:00
Fix alt linkfor youtu.be urls
This commit is contained in:
parent
75f8fcd40b
commit
0e85a04761
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ def add_alt_links(html)
|
||||||
END_HTML
|
END_HTML
|
||||||
elsif url.host == "youtu.be"
|
elsif url.host == "youtu.be"
|
||||||
alt_link = <<-END_HTML
|
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>
|
<i class="fa fa-link" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
END_HTML
|
END_HTML
|
||||||
|
|
Loading…
Reference in a new issue