Chuyển đến nội dung
Skillpedia
SEO75k · #2969

pagination

Skill này làm gì

Skill này kiểm tra các danh sách chia trang, như lưu trữ blog và trang chuyên mục, và đảm bảo mỗi trang trỏ tới chính địa chỉ của nó. Skill dành cho chủ website có nội dung chia nhiều trang.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent kiểm tra thẻ canonical trên lưu trữ blog hoặc trang chuyên mục.
  • ✓Khi các trang từ trang hai trở đi của một danh sách không xuất hiện trong kết quả tìm kiếm.
  • ✓Khi website của bạn dùng cuộn vô hạn hoặc nút tải thêm và bạn muốn công cụ tìm kiếm vẫn tới được nội dung.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/pagination/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/pagination/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

“Các trang chuyên mục của tôi sau trang một không xuất hiện trên Google. Bạn có thể kiểm tra thẻ canonical 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 URL phân trang và kiểm tra thẻ canonical của mỗi trang có trỏ về chính nó không. Khi một trang trỏ ngược về trang một mà không có nội dung trùng lặp thật, agent cập nhật thẻ và thêm liên kết có thể thu thập cho cuộn vô hạn.

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.

Use canonicals on paginated pages

Incorrect pagination canonicalization can prevent pages 2, 3, etc. from being indexed, removing valuable content from search results and breaking user journeys from search queries that match content on later pages.

Quick Reference

  • Each paginated page (/page/2, /page/3) should self-canonicalize to its own URL
  • Do NOT canonicalize all paginated pages to page 1 — this is a common mistake
  • Google dropped support for rel=prev/next in 2019 — don't rely on it
  • Use consistent URL patterns for pagination (?page=2 or /page/2, never both)
  • Infinite scroll and load-more UIs still need crawlable paginated URLs or links

Check

Find paginated page sequences (URLs with ?page=, /page/, /p/, or numbered suffixes). For each page, check the canonical tag. Verify that each page self-canonicalizes (page 2 canonical-url = page 2 URL). Flag any paginated page that incorrectly points canonical-url to page 1. If the UI uses infinite scroll or "load more", verify equivalent crawlable pagination links exist.

Fix

Update canonical tags so each paginated page self-references. For /category?page=2, set <link rel='canonical' href='https://example.com/category?page=2' />. Remove any canonical pointing paginated pages to the first page unless those pages genuinely have duplicate content. Add crawlable paginated URLs or fallback links for infinite-scroll interfaces.

Explain

Pagination canonical tags tell Google which URL is the preferred version of each page. Setting all paginated pages to canonical-url to page 1 tells Google that pages 2, 3, etc. are duplicates of page 1 — so Google stops indexing them. Content that only appears on page 3 (for example) then becomes unreachable from search.

Code Review

Identify paginated URL patterns (URLs with page=, /page/, /p/ parameters). For each paginated page beyond page 1, check the canonical tag. Flag any page 2+ that has a canonical pointing to page 1 (the base URL). Verify that page 1 has a self-referencing canonical. Check that pagination URL format is consistent (no mixing of ?page= and /page/). For JS-driven infinite scroll, verify there is still a crawlable path to page 2+ via real links or paginated URLs.


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

Rule page: https://frontendchecklist.io/rules/seo/pagination

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

Vì sao trỏ mọi trang về trang một là sai?

Nó có thể giữ các trang từ trang hai trở đi khỏi tìm kiếm, làm mất nội dung và phá vỡ hành trình tìm kiếm đến các trang sau.

rel prev và next còn quan trọng không?

Skill nói Google đã ngừng hỗ trợ chúng từ năm 2019, nên không nên dựa vào chúng.

URL có cần đồng nhất không?

Có. Skill khuyên dùng một mẫu thống nhất, chẳng hạn ?page=2 hoặc /page/2, không dùng cả hai.

Chi tiết

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

Use when auditing paginated content (blog archives, product category pages, search results). Applies to any site with lists or grids of content split across multiple pages.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2969
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ự