broken API redirects

Đang mở
#31 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
documentation

Hướng nghiên cứu

Start by reading the JavaScript redirect that currently matches /documents/current/. Check how it handles the example /documents/22.10.0/ URL, then verify that it redirects to the matching versioned URL on docs.twisted.org instead of the docs front page. The issue gives no file or test names.

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

Mô tả

When I copy "online URLs" out of Dash, I get URLs in this format:

https://twistedmatrix.com/documents/22.10.0/api/twisted.application.internet.ClientService.html

This should redirect me to https://docs.twisted.org/en/twisted-22.10.0/api/twisted.application.internet.ClientService.html but instead I get bounced through a page that says "404", but does a JS redirect back to the front page of the docs.

I see the JS redirect has a hard-coded to match /documents/current/ and we could probably match a version number in there too.

Ngôn ngữ chính
JavaScript
Star
8
Fork
3
Merge trung bình
3 giờ 26 phút
Pull request đã merge (30 ngày)
1

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 twisted/twisted.github.io

Tất cả issue của twisted/twisted.github.io

Issue tương tự

Thêm issue về JavaScript

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.