broken API redirects

オープン
#31 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
documentation

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
8
フォーク
3
平均マージ
3時間 26分
マージ済み PR(30日)
1

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

twisted/twisted.github.io のほかの issue

twisted/twisted.github.io の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。