Making WordPress.org

Opened 3 years ago

Last modified 3 years ago

#5487 new defect (bug)

Unpublished (Pending) HelpHub articles should redirect to english version for not editors

Reported by: jdy68's profile jdy68 Owned by:
Milestone: Priority: normal
Component: HelpHub (wordpress.org/documentation) Keywords: needs-patch
Cc:

Description

Hi,

I'm part of the team that translates WordPress documentation into French.
This translation is done post by post and not everything is translated yet.
This is why in some posts there are links that point to posts that are still in English.
All links pointing to another post in the documentation are relative links starting with "/support/article/slug-of-post".

When we translate a post that contains links to others posts of documentation, we do not modify the relative links, since we don't translate the slug of the post.

Since the link has not been modified, when the target post of the link is translated, it will be displayed in the same language as the post in which the link is located.

However, when a visitor, not connected to wordpress.org, clicks on a link that targets a post not yet translated, a 404 error occurs.

Example, in the post:"Sauvegarder votre base de données" (https://fr.wordpress.org/support/article/backing-up-your-database/)
the link Administration (/support/article/administration-screens/) in the "Sauvegarder" paragraph (https://fr.wordpress.org/support/article/backing-up-your-database/#sauvergarder) returns:

How can this 404 error be corrected?

Attachments (1)

adminstration-link.png (193.4 KB) - added by jdy68 3 years ago.
Screenshot to locate the link cited as an example

Download all attachments as: .zip

Change History (6)

@jdy68
3 years ago

Screenshot to locate the link cited as an example

#1 @jdy68
3 years ago

  • Summary changed from Erreurs 404 sur les liens dans la documentation en cours de traduction to Errors 404 on links in the documentation being translated

#2 @fierevere
3 years ago

  • Summary changed from Errors 404 on links in the documentation being translated to Erreurs 404 sur les liens dans la documentation en cours de traduction

Its normal to show 404 error on unpublished (pending/draft) article.
You can see unpublished/drafts because you have permission to do so, everyone else will see 404.

There is nothing to fix on the meta site. Just continue working on articles and publish them.

#3 @fierevere
3 years ago

  • Summary changed from Erreurs 404 sur les liens dans la documentation en cours de traduction to Errors 404 on links in the documentation being translated

#4 @jdy68
3 years ago

Another idea: would it be possible to redirect to wordpress.org/support/slug-of-post, if the post is a draft

#5 @jdy68
3 years ago

  • Summary changed from Errors 404 on links in the documentation being translated to Unpublished (Pending) HelpHub articles should redirect to english version for not editors
Note: See TracTickets for help on using tickets.