Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Favicon uses the original page URL to resolve relative icon links after a redirect

Đang mở Phù hợp với người mới
#13,985 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
api, backend

Hướng nghiên cứu

Bắt đầu trong Get.php tại các dòng 278, 115 và 152-154. Theo dõi cách safeFetch() xử lý các chuyển hướng và cách liên kết biểu tượng cùng fallback /favicon.ico được phân giải; tái hiện trường hợp chuyển hướng và xác nhận rằng biểu tượng được trả về đến từ URL của trang cuối cùng, chẳng hạn như /blog/images/icon.ico.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

product / avatars product / self-hosted product / storage
👟 Reproduction steps
  1. On a public test host, make /start redirect to /blog/page.
  2. Serve /blog/page with <link rel="icon" href="images/icon.ico">.
  3. Serve different icons at /images/icon.ico and /blog/images/icon.ico.
  4. 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?
  • I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
Ngôn ngữ chính
PHP
Star
57.5k
Fork
5.8k
Merge trung bình
19 giờ 44 phút
Pull request đã merge (30 ngày)
365

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của appwrite/appwrite

Tất cả issue của appwrite/appwrite

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.