You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Favicon uses the original page URL to resolve relative icon links after a redirect #13985
On a public test host, make /start redirect to /blog/page.
Serve /blog/page with <link rel="icon" href="images/icon.ico">.
Serve different icons at /images/icon.ico and /blog/images/icon.ico.
Request /v1/avatars/favicon with url set to https://<test-host>/start.
👍 Expected behavior
The endpoint returns the icon from /blog/images/icon.ico, resolving the relative link against the page URL reached after the redirect.
👎 Actual Behavior
It follows the redirect but resolves the icon link against the original /start URL, so it returns /images/icon.ico instead.
Cause: safeFetch() loses the final URL after redirects (Get.php:278), and icon links and the /favicon.ico fallback are resolved against the original $url (Get.php:115, 152-154).
🎲 Appwrite version
Different version (specify in environment)
💻 Operating system
Linux
🧱 Your Environment
Appwrite self-hosted build from upstream main. No SDK used. Reproduced with controlled redirect and favicon responses.
👀 Have you spent some time to check if this issue has been raised before?
Activity