Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect-path: cleaning up hard-coded redirection pathes #1000

Closed
myfreeer opened this issue Mar 3, 2024 · 1 comment
Closed

redirect-path: cleaning up hard-coded redirection pathes #1000

myfreeer opened this issue Mar 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@myfreeer
Copy link
Member

myfreeer commented Mar 3, 2024

Part of #445 .
The redirect-path.ts came from a very early stage when kuma is the backend engine of mdn, a lot of urls collected from many manually runs are placed into here to avoid issues like redirection loops and incorrect links.
This is the first attempt to clean up this file after yari was introduced, and the link layout is more stable now, and most contents get translated.

  1. In mdnRedirectPath, for each locale here, if both the key and value path not exists in all locales, remove it.
  2. In mdnLocaleRedirectPath, if both the key and value path not exists, remove it.
  3. In hardCodedRedirectUrl, if both the key and value path not exists, remove it.

This steps could be done via scripts.

@myfreeer myfreeer added the enhancement New feature or request label Mar 3, 2024
myfreeer added a commit that referenced this issue Oct 6, 2024
@myfreeer
Copy link
Member Author

myfreeer commented Oct 6, 2024

scripts.zip
Clean up scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant