javascript-tutorial / javascript-tutorial/en.javascript.info

resolveMdn no longer trustworthy?

Open
#2,471 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
25.5k
Forks
4k
PR merge metrics
No merged PRs in 30d

Description

I have to replace many [ ](mdn: ) links and insert the full url in the spanish repo because they lead to 404

  • some work ok,
  • some give 404 and the lucky english link to click
  • some give just the 404 and no other clue

it can not be solved by the engine
because some URL are translated too (some lang keep the same url, but Spanish and French translate some MDN url too)

I tested just one Arab article ( https://ar.javascript.info/prototype-inheritance ),
I got the same issue,

mdn: link obj.hasOwnProperty transforms to
https://developer.mozilla.org/ar/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty

404 with the lucky link this time.

Contributor guide

No contributing guide indexed for this repository

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 reproducing the mdn: obj.hasOwnProperty link from the Arabic article and compare the generated URL with the Spanish and French cases described. Inspect the resolveMdn handling for localized MDN paths; done means translated links no longer lead to unexplained 404s or are replaced with reliable full URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, localization
Issue type
Bug
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.