OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Documentation pages 'Edit' button returns 404

Open Cinnam00n opened this issue 1 year ago • 3 comments

Example:

https://docs.orchardcore.net/en/dev/docs/topics/docs-contributions/

Edit button on the left which is supposed to let you edit the docs page redirects to 404.

https://github.com/OrchardCMS/OrchardCore/edit/dev/src/docs/topics/docs-contributions/README.md

Cinnam00n avatar Jul 06 '22 09:07 Cinnam00n

The URL should be:

https://github.com/OrchardCMS/OrchardCore/edit/main/src/docs/topics/docs-contributions/README.md

instead of:

https://github.com/OrchardCMS/OrchardCore/edit/dev/src/docs/topics/docs-contributions/README.md

It is pointing to a branch that no longer exists: "dev".

@agriffard

Skrypt avatar Jul 06 '22 15:07 Skrypt

https://github.com/OrchardCMS/OrchardCore/blob/6bb53d98b7ef5b7d66e9392820bac4f1a77711dd/mkdocs.yml#L40

As you can see here the configuration is correctly done.

The issue is that the documentation can still resolve a page from a request that is made on the dev branch. Else it works perfectly from that URL:

https://docs.orchardcore.net/en/main/docs/topics/docs-contributions/

Skrypt avatar Jul 06 '22 15:07 Skrypt

Also, this is coming from a search made on Google:

image

The URLs are all pointing to the dev branch. This means the indexation has been set on these URLs.

I would suggest adding a URL permanent redirect to the main or latest branch URL.

Skrypt avatar Jul 06 '22 15:07 Skrypt

dev branch is not built anymore.

agriffard avatar May 24 '23 16:05 agriffard