redirect-article deletes the source article before creating the redirect entry

オープン 初心者向け
#56,948 コメント 0 件 リアクション 1 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@BillWagner がすでに取り組んでいます。

2026年11月20日 から。

  • #56961 @BillWagner による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
powershell
領域
documentation

調査の方向性

SKILL.md の 26〜32 行を読み、create-redirect-entry.ps1 を調べて現在のリダイレクトのワークフローを把握します。元記事がどこで削除され、リダイレクトのエントリがどのように書き込まれるかを確認します。元記事を削除する前にリダイレクトが作成され、検証され、削除とリダイレクト先を示す確認が表示されれば完了です。

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

説明

Describe the issue or suggestion

Summary

The required order in SKILL.md:26-32 is:

  1. Delete the source article with Remove-Item (SKILL.md:30)
  2. Add the redirect entry with create-redirect-entry.ps1 (SKILL.md:31)
  3. Update internal links (SKILL.md:32)

If the script fails or is interrupted between steps 1 and 2, the old URL has neither content nor a redirect, so it 404s — a state worse than before the move.

Suggested fix

  • Create and verify the redirect entry first (or in the same change), then delete the source file and update links.
  • Show the planned deletion and redirect target and confirm before applying.
  • Check that the redirect file contains the new entry before removing the article.

Note

Refs: main@e62c5cf.

主要言語
言語のデータがありません
スター
4.8k
フォーク
6.1k
平均マージ
22時間 9分
マージ済み PR(30日)
302

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

dotnet/docs のほかの issue

dotnet/docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

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

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