Search: Fix 'youtu.be' URLs in sanitizer (#4894)
Use the proper URL argument when transforming youtu.be URLs to their youtube.com equivalents. Thanks to Tuhgy on the fediverse for reporting this! No related issue
This commit is contained in:
commit
d5f5490aee
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ module UrlSanitizer
|
|||
new_uri.path = "/watch"
|
||||
|
||||
new_params = copy_params(unsafe_uri.query_params, :watch)
|
||||
new_params["id"] = breadcrumbs[0]
|
||||
new_params["v"] = breadcrumbs[0]
|
||||
|
||||
new_uri.query_params = new_params
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue