From 0e62a122d520cbb34f0edb6b120aa9be1add87c1 Mon Sep 17 00:00:00 2001 From: "Fillip H." <0-duplex-boater@icloud.com> Date: Tue, 7 Jan 2025 19:13:45 +0200 Subject: [PATCH] Fix redirects that apply URL parameters Closes https://github.com/ArthurHoaro/favicon/issues/29 --- src/Favicon/Favicon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Favicon/Favicon.php b/src/Favicon/Favicon.php index 7939f5b..ff447e6 100644 --- a/src/Favicon/Favicon.php +++ b/src/Favicon/Favicon.php @@ -159,7 +159,7 @@ public function get($url = '', $type = FaviconDLType::HOTLINK_URL) ($favicon = $this->checkCache($original, self::$TYPE_CACHE_URL)) === false && ! $favicon = $this->getFavicon($original, false) ) { - $url = rtrim($this->endRedirect(self::baseUrl($this->url, false)), '/'); + $url = rtrim(self::baseUrl($this->endRedirect(self::baseUrl($this->url, false)), false), '/'); if ( ($favicon = $this->checkCache($url, self::$TYPE_CACHE_URL)) === false && ! $favicon = $this->getFavicon($url)