mdn / mdn/fred

Feature request: display link that redirects back to corresponding doc link at PR review's 404 page

Open
#987 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
233
Forks
61
Avg merge
1d 1h
Merged PRs (30d)
82

Description

When proposing PR on content/translated-content repo, only the content that proposed changes are served(and they are at prxxxx.content.dev.mdn.mozit.cloud). Therefore, it may be useful for some links in documents jump to original web docs' page, in that case I wouldn't copy and change the URL manually when reaching 404 errors:(

Can we display notices like "You are now at developement website of developer.mozilla.org, redirect you back
to correspoding document?(or better messages possible)" at 404 pages on developement site(which created by PRs)and show links to original version of document if possible?

Edit: I do a little mocking to clarify what I said:
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the 404 page used by PR review sites in the translated-content workflow and trace how its requested document URL relates to developer.mozilla.org. Done means the 404 page clearly identifies the development site and provides a working link to the corresponding original document when one can be determined.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.