Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 69f27e7

Browse files
fix: 🐛 redirect old links to /en/learn (#2809)
Co-authored-by: Claudio Wunder <cwunder@gnome.org>
1 parent 132475b commit 69f27e7

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

firebase.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,56 @@
9696
"destination": "/api/",
9797
"type": "301"
9898
},
99+
{
100+
"source": "/en/learn/the-packagejson-guide/",
101+
"destination": "/en/learn/",
102+
"type": "301"
103+
},
104+
{
105+
"source": "/en/learn/how-to-exit-from-a-nodejs-program/",
106+
"destination": "/en/learn/",
107+
"type": "301"
108+
},
109+
{
110+
"source": "/en/learn/where-does-npm-install-the-packages/",
111+
"destination": "/en/learn/",
112+
"type": "301"
113+
},
114+
{
115+
"source": "/en/learn/get-http-request-body-data-using-nodejs/",
116+
"destination": "/en/learn/",
117+
"type": "301"
118+
},
119+
{
120+
"source": "/en/learn/a-brief-history-of-nodejs/",
121+
"destination": "/en/learn/",
122+
"type": "301"
123+
},
124+
{
125+
"source": "/en/learn/nodejs-file-paths/",
126+
"destination": "/en/learn/",
127+
"type": "301"
128+
},
129+
{
130+
"source": "/learn/asynchronous-work/blocking-vs-non-blocking",
131+
"destination": "https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Introducing",
132+
"type": "301"
133+
},
134+
{
135+
"source": "/learn/discover-javascript-timers",
136+
"destination": "https://developer.mozilla.org/en-US/docs/Web/API/setTimeout",
137+
"type": "301"
138+
},
139+
{
140+
"source": "/learn/modern-asynchronous-javascript-with-async-and-await",
141+
"destination": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises",
142+
"type": "301"
143+
},
144+
{
145+
"source": "/learn/the-nodejs-event-loop",
146+
"destination": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises",
147+
"type": "301"
148+
},
99149
{
100150
"source": "/api/",
101151
"destination": "/api/v18/documentation/",

redirects.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,18 @@ module.exports = {
1212
'/about/trademark/': 'https://trademark-policy.openjsf.org/',
1313
// Redirects the old `/docs` path to `/api`
1414
'/docs/*': '/api/',
15+
'/en/learn/the-packagejson-guide/': '/en/learn/',
16+
'/en/learn/how-to-exit-from-a-nodejs-program/': '/en/learn/',
17+
'/en/learn/where-does-npm-install-the-packages/': '/en/learn/',
18+
'/en/learn/get-http-request-body-data-using-nodejs/': '/en/learn/',
19+
'/en/learn/a-brief-history-of-nodejs/': '/en/learn/',
20+
'/en/learn/nodejs-file-paths/': '/en/learn/',
21+
'/learn/asynchronous-work/blocking-vs-non-blocking':
22+
'https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Introducing',
23+
'/learn/discover-javascript-timers':
24+
'https://developer.mozilla.org/en-US/docs/Web/API/setTimeout',
25+
'/learn/modern-asynchronous-javascript-with-async-and-await':
26+
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises',
27+
'/learn/the-nodejs-event-loop':
28+
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises',
1529
};

0 commit comments

Comments
 (0)