Download, FAQ, privacy and terms pages have no meta description

Đang mở Phù hợp với người mới
#3,675 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

@patrickballard đang làm issue này rồi.

Từ ngày 3/11/2026.

  • #3676 của @patrickballard — đang mở

Đá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
82/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ệ
nextjs, react, typescript

Hướng nghiên cứu

Bốn trang bị ảnh hưởng xây dựng metadata thông qua buildMarketingMetadata trong apps/web/lib/og/url.ts, hàm này luôn đặt khóa description, nên giá trị undefined sẽ ghi đè description của root layout. Hãy bắt đầu bằng việc đọc helper này và một trang có truyền description, chẳng hạn trang pricing. Chạy kiểm tra curl trong issue với một bản build cục bộ và xác nhận bốn trang đều xuất các thẻ meta description, og:description và twitter:description. Việc hoàn thành khi các thẻ này xuất hiện trên /download, /faq, /privacy và /terms.

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

Mô tả

Description

cap.so/download, /faq, /privacy and /terms serve no meta description, and no og:description or twitter:description either, so search results and link previews for them fall back to whatever text the crawler picks.

The root layout sets a site-wide description, but these four pages build their metadata with buildMarketingMetadata (apps/web/lib/og/url.ts) without passing one. The helper always sets the description key, so undefined overrides the layout's description instead of inheriting it. The other 23 pages that use the helper pass a description and are fine.

Reproduction
curl -s https://cap.so/download | grep -cE '<meta (name|property)="(description|og:description|twitter:description)"'

This prints 0 for /download, /faq, /privacy and /terms, and 3 for /pricing.

Expected

Each page has its own description in its page, Open Graph and Twitter metadata.

Ngôn ngữ chính
Rust
Star
24.2k
Fork
2.2k
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
723

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 CapSoftware/Cap

Tất cả issue của CapSoftware/Cap

Issue tương tự

Thêm issue về Rust

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.