Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)75k · #2881

identical-links-same-purpose

Skill này làm gì

Skill này kiểm tra các liên kết trên trang có cùng văn bản nhưng dẫn tới đích khác nhau. Skill dành cho lập trình viên và biên tập viên muốn liên kết rõ ràng và dễ đoán.

Khi nào nên dùng

  • ✓Khi nhiều liên kết trên trang cùng ghi đọc thêm nhưng dẫn tới các bài viết khác nhau.
  • ✓Khi người dùng trình đọc màn hình lướt qua danh sách liên kết và bị rối.
  • ✓Khi bạn rà soát thành phần điều hướng và thẻ nội dung.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/identical-links-same-purpose/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/identical-links-same-purpose/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể kiểm tra xem các liên kết cùng văn bản của tôi có dẫn tới cùng một nơi không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm các văn bản liên kết giống hệt nhau nhưng trỏ tới URL khác nhau. Agent gợi ý làm cho mỗi văn bản liên kết là duy nhất, hoặc để các văn bản giống nhau dẫn tới cùng một trang.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Ensure identical links have consistent destinations

When links with identical text lead to different destinations, it creates confusion and unpredictability, especially for users who rely on a list of links to navigate.

Quick Reference

  • Links with the same text should point to the same URL
  • Differentiate links that lead to different places
  • Reduces confusion for screen reader users navigating by link list

Check

Identify any links on the page that have identical link text but point to different URLs.

Fix

Change the link text to be unique for each destination, or ensure that identical text always leads to the same resource.

Explain

Explain how identical link text for different destinations can mislead users, particularly those using screen readers to scan a list of links.

Code Review

Review the rendered markup and interactive states that affect Ensure identical links have consistent destinations. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/identical-links-same-purpose

Câu hỏi thường gặp

Vì sao điều này quan trọng?

Người dùng trình đọc màn hình thường duyệt danh sách tất cả liên kết trên trang, nên văn bản giống nhau nhưng đích khác nhau gây hiểu nhầm.

Cách sửa đơn giản nhất là gì?

Skill gợi ý để mỗi văn bản liên kết mô tả đích đến của chính nó.

Làm sao kiểm tra kết quả sửa?

Skill gợi ý dùng công cụ trợ năng của trình duyệt hoặc công nghệ hỗ trợ.

Chi tiết

Mô tả gốc của tác giả

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Ensure identical links have consistent destinations. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2881
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự