Skip to content

edit-url-template not working #150593

@reddevilmidzy

Description

@reddevilmidzy

Location (URL)

https://github.com/rust-lang/rust/edit/HEAD/src/doc/unstable-book/src/the-unstable-book.md


Image

Summary

When I click suggest an edit in the unstable book, it takes me to a 404 page. I think it's because edit-url-template's branch is set to HEAD instead of main.

https://github.com/rust-lang/rust/edit/main/src/doc/unstable-book/src/the-unstable-book.md
this link is work.


[output.html]
git-repository-url = "https://github.com/rust-lang/rust/tree/HEAD/src/doc/unstable-book"
edit-url-template = "https://github.com/rust-lang/rust/edit/HEAD/src/doc/unstable-book/{path}"

[output.html]
git-repository-url = "https://github.com/rust-lang/rust/tree/HEAD/src/doc/rustc"
edit-url-template = "https://github.com/rust-lang/rust/edit/HEAD/src/doc/rustc/{path}"

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions