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

未关闭 适合新手
#56,948 0 条评论 1 个 reaction 已指派 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 分钟
30 天内合并 PR
302

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dotnet/docs 的其他 Issue

查看 dotnet/docs 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。