From ca4e8b800c62e4747a61c7358322e2fbf1fcb5cb Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 21 Nov 2018 20:49:14 -0600 Subject: [PATCH] Use absolute paths in /opensearch.xml --- src/invidious.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index de40698f..76d772dc 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -521,8 +521,8 @@ get "/opensearch.xml" do |env| xml.element("LongName") { xml.text "Invidious Search" } xml.element("Description") { xml.text "Search for videos, channels, and playlists on Invidious" } xml.element("InputEncoding") { xml.text "UTF-8" } - xml.element("Image", width: 48, height: 48, type: "image/x-icon") { xml.text "/favicon.ico" } - xml.element("Url", type: "text/html", method: "get", template: "/search?q={searchTerms}") + xml.element("Image", width: 48, height: 48, type: "image/x-icon") { xml.text "https://invidio.us/favicon.ico" } + xml.element("Url", type: "text/html", method: "get", template: "https://invidio.us/search?q={searchTerms}") end end end