Skip to content

Commit 9cc6f6c

Browse files
committed
Update internal links and URL fragments in other docs
1 parent 462ddb0 commit 9cc6f6c

36 files changed

Lines changed: 166 additions & 183 deletions

src/content/blog/2025-03-31-v5-1-latest-release.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ We know that migrating between versions can be challenging, especially when it i
2828

2929
Thanks to the incredible efforts of [Sebastian](https://github.com/bjohansebas) and [Filip](https://github.com/kjugi), we have developed a new [codemod package](https://www.npmjs.com/package/@expressjs/codemod) specifically designed to facilitate the transition from Express v4 to v5, as well as future major versions. This package automates many of the necessary code changes, minimizing manual effort and making the upgrade as smooth and efficient as possible.
3030

31-
However, we understand that not all changes can be automated. Some breaking changes, such as the [new Path Route Matching syntax](/en/guide/migrating-5#path-syntax), require manual modifications by developers. You can read more about all of the breaking changes which came with v5 in our [original release announcement](/en/blog/2024-10-15-v5-release).
31+
However, we understand that not all changes can be automated. Some breaking changes, such as the [new Path Route Matching syntax](/en/guide/migrating-5#path-route-matching-syntax), require manual modifications by developers. You can read more about all of the breaking changes which came with v5 in our [original release announcement](/en/blog/2024-10-15-v5-release).
3232

3333
For more details on the migration process and how to use the codemod package, check the [repository’s README](https://github.com/expressjs/codemod#readme) and the [migration guide](/en/guide/migrating-5).
3434

@@ -115,9 +115,9 @@ starts the clock on EOL for v4 by moving it to `MAINTENANCE`. We recognize that
115115
only major version for most of the history of Node.js itself. Because of this, we want to remain flexible and also
116116
provide a bit longer support. We want to do what is best for the ecosystem, so consider these goals not commitments.
117117

118-
\*: v4 is a special case, and we may extend MAINTENENCE support
118+
\*: v4 is a special case, and we may extend MAINTENENCE support
119119
\*\*: v5 MAINTENENCE and EOL dates are determined by when v6 is released, these dates reflect the earliest dates if we
120-
were to ship v6 on 2025-10-01
120+
were to ship v6 on 2025-10-01
121121
\*\*\* : v6 work has not officially started yet, this is simply the earliest date we can ship based on our proposed policy
122122

123123
---

src/content/blog/2025-06-05-vulnerability-reporting-process-overhaul.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Security Advisories are now enabled across all Express.js repositories, allowing
3838

3939
Expectations around ownership and response timelines have been clarified and published to reduce ambiguity and improve responsiveness.
4040

41-
> A [Security triage team member](https://github.com/expressjs/security-wg#security-triage-team) or [the repo captain](https://github.com/expressjs/discussions/blob/master/docs/contributing/captains_and_committers.md) will acknowledge your report as soon as possible.
41+
> A [Security triage team member](https://github.com/expressjs/security-wg#security-triage-team-expressjssecurity-triage) or [the repo captain](https://github.com/expressjs/discussions/blob/master/docs/contributing/captains_and_committers.md) will acknowledge your report as soon as possible.
4242
>
4343
> After the initial reply to your report, the security team will
4444
> endeavor to keep you informed of the progress towards a fix and full

src/content/blog/2026-05-18-a-new-look-for-express.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The effort was led by [Sebastian Beltran](https://github.com/bjohansebas), with
7777

7878
A huge thank you goes to the [Orama](https://orama.com) team for sponsoring [Francesca Giannino](https://github.com/g-francesca), [Angela Angelini](https://www.linkedin.com/in/angeliningl/), [Michele Riva](https://github.com/micheleriva), and [Davide Spaziani](https://www.linkedin.com/in/davidespazianitesta/), and for the design, feedback, and support they brought to every stage of the project.
7979

80-
From the Express side, the redesign was shaped by many hands: [Ulises Gascón](https://github.com/ulisesgascon), [Rand McKinney](https://github.com/crandmck), [Jon Church](https://github.com/jonchurch), [Shubham Oulkar](https://github.com/ShubhamOulkar), the rest of the [Express Technical Committee](https://github.com/expressjs/express#technical-committee), and everyone who contributed reviews, issues, or comments along the way. The full history, including every PR that made it into the redesign, lives in [the main pull request](https://github.com/expressjs/expressjs.com/pull/2169).
80+
From the Express side, the redesign was shaped by many hands: [Ulises Gascón](https://github.com/ulisesgascon), [Rand McKinney](https://github.com/crandmck), [Jon Church](https://github.com/jonchurch), [Shubham Oulkar](https://github.com/ShubhamOulkar), the rest of the [Express Technical Committee](https://github.com/expressjs/express#tc-technical-committee), and everyone who contributed reviews, issues, or comments along the way. The full history, including every PR that made it into the redesign, lives in [the main pull request](https://github.com/expressjs/expressjs.com/pull/2169).
8181

8282
More than a year of work went into this launch. In open source, progress is rarely fast: decisions take discussion, design takes iteration, and reviews take time. But step by step, a community can build something it's proud of, and this is one of those steps.
8383

src/content/docs/en/4x/guide/behind-proxies.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,17 @@ Enabling `trust proxy` will have the following impact:
8686

8787
<ul>
8888
<li markdown="1">
89-
The value of [req.hostname](/en/api#req.hostname) is derived from the value set in the
89+
The value of [req.hostname](../../api/request/#reqhostname) is derived from the value set in the
9090
`X-Forwarded-Host` header, which can be set by the client or by the proxy.
9191
</li>
9292
<li markdown="1">
9393
`X-Forwarded-Proto` can be set by the reverse proxy to tell the app whether it is `https` or
94-
`http` or even an invalid name. This value is reflected by [req.protocol](/en/api#req.protocol).
94+
`http` or even an invalid name. This value is reflected by
95+
[req.protocol](../../api/request/#reqprotocol).
9596
</li>
9697
<li markdown="1">
97-
The [req.ip](/en/api#req.ip) and [req.ips](/en/api#req.ips) values are populated based on the
98-
socket address and `X-Forwarded-For` header, starting at the first untrusted address.
98+
The [req.ip](/en/api#req.ip) and [req.ips](../../api/request/#reqips) values are populated based
99+
on the socket address and `X-Forwarded-For` header, starting at the first untrusted address.
99100
</li>
100101
</ul>
101102

src/content/docs/en/4x/guide/debugging.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ On Windows, use the corresponding command.
1818
> $env:DEBUG = "express:*"; node index.js
1919
```
2020

21-
Running this command on the default app generated by the [express generator](/en/starter/generator) prints the following output:
21+
Running this command on the default app generated by the [express generator](../../starter/generator) prints the following output:
2222

2323
```bash
2424
$ DEBUG=express:* node ./bin/www

src/content/docs/en/4x/guide/error-handling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function errorHandler(err, req, res, next) {
190190
Note that the default error handler can get triggered if you call `next()` with an error
191191
in your code more than once, even if custom error handling middleware is in place.
192192

193-
Other error handling middleware can be found at [Express middleware](/en/resources/middleware).
193+
Other error handling middleware can be found at [Express middleware](../../../resources/middleware).
194194

195195
## Writing error handlers
196196

src/content/docs/en/4x/guide/overriding-express-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Altering the global prototypes will affect all loaded Express apps in the same p
1414

1515
You can override the signature and behavior of existing methods with your own, by assigning a custom function.
1616

17-
Following is an example of overriding the behavior of [res.sendStatus](/en/4x/api#res.sendStatus).
17+
Following is an example of overriding the behavior of [res.sendStatus](../../api/response/#ressendstatusstatuscode).
1818

1919
```js
2020
app.response.sendStatus = function (statusCode, type, message) {

src/content/docs/en/4x/guide/routing.mdx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ description: Learn how to define and use routes in Express.js applications, incl
66
import Alert from '@components/primitives/Alert/Alert.astro';
77

88
_Routing_ refers to how an application's endpoints (URIs) respond to client requests.
9-
For an introduction to routing, see [Basic routing](/en/4x/starter/basic-routing).
9+
For an introduction to routing, see [Basic routing](../../starter/basic-routing).
1010

1111
You define routing using methods of the Express `app` object that correspond to HTTP methods;
1212
for example, `app.get()` to handle GET requests and `app.post` to handle POST requests. For a full list,
13-
see [app.METHOD](/en/4x/api/application#appmethodpath-callback--callback-). You can also use [app.all()](/en/4x/api/application#appallpath-callback--callback-) to handle all HTTP methods and [app.use()](/en/4x/api/application#appusepath-callback--callback) to
14-
specify middleware as the callback function (See [Using middleware](/en/4x/guide/using-middleware) for details).
13+
see [app.METHOD](../../api/application#appmethodpath-callback--callback-). You can also use [app.all()](../../api/application#appallpath-callback--callback-) to handle all HTTP methods and [app.use()](../../api/application#appusepath-callback--callback) to
14+
specify middleware as the callback function (See [Using middleware](../using-middleware) for details).
1515

1616
These routing methods specify a callback function (sometimes called "handler functions") called when the application receives a request to the specified route (endpoint) and HTTP method. In other words, the application "listens" for requests that match the specified route(s) and method(s), and when it detects a match, it calls the specified callback function.
1717

@@ -50,7 +50,7 @@ app.post('/', (req, res) => {
5050
```
5151

5252
Express supports methods that correspond to all HTTP request methods: `get`, `post`, and so on.
53-
For a full list, see [app.METHOD](/en/4x/api/application#appmethodpath-callback--callback-).
53+
For a full list, see [app.METHOD](../../api/application#appmethodpath-callback--callback-).
5454

5555
There is a special routing method, `app.all()`, used to load middleware functions at a path for _all_ HTTP request methods. For example, the following handler is executed for requests to the route `"/secret"` whether using `GET`, `POST`, `PUT`, `DELETE`, or any other HTTP request method supported in the [http module](https://nodejs.org/api/http.html#http_http_methods).
5656

@@ -212,12 +212,12 @@ characters with an additional backslash, for example `\\d+`.
212212
</Alert>
213213

214214
<Alert type="warning">
215-
The <a href="https://github.com/expressjs/express/issues/2495">`*` character in regular expressions is not interpreted in the usual way</a>. As a workaround, use `{0,}` instead of `*`.
215+
The [`*`](https://github.com/expressjs/express/issues/2495) character in regular expressions is not interpreted in the usual way. As a workaround, use `{0,}` instead of `*`.
216216
</Alert>
217217

218218
## Route handlers
219219

220-
You can provide multiple callback functions that behave like [middleware](/en/guide/using-middleware) to handle a request. The only exception is that these callbacks might invoke `next('route')` to bypass the remaining route callbacks. You can use this mechanism to impose pre-conditions on a route, then pass control to subsequent routes if there's no reason to proceed with the current route.
220+
You can provide multiple callback functions that behave like [middleware](../using-middleware) to handle a request. The only exception is that these callbacks might invoke `next('route')` to bypass the remaining route callbacks. You can use this mechanism to impose pre-conditions on a route, then pass control to subsequent routes if there's no reason to proceed with the current route.
221221

222222
```js
223223
app.get('/user/:id', (req, res, next) => {
@@ -312,22 +312,22 @@ app.get(
312312

313313
The methods on the response object (`res`) in the following table can send a response to the client, and terminate the request-response cycle. If none of these methods are called from a route handler, the client request will be left hanging.
314314

315-
| Method | Description |
316-
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
317-
| [res.download()](/en/4x/api/response#resdownloadpath--filename--options--fn) | Prompt a file to be downloaded. |
318-
| [res.end()](/en/4x/api/response#resenddata-encoding-callback) | End the response process. |
319-
| [res.json()](/en/4x/api/response#resjsonbody) | Send a JSON response. |
320-
| [res.jsonp()](/en/4x/api/response#resjsonpbody) | Send a JSON response with JSONP support. |
321-
| [res.redirect()](/en/4x/api/response#resredirectstatus-path) | Redirect a request. |
322-
| [res.render()](/en/4x/api/response#resrenderview--locals--callback) | Render a view template. |
323-
| [res.send()](/en/4x/api/response#ressendbody) | Send a response of various types. |
324-
| [res.sendFile()](/en/4x/api/response#ressendfilepath--options--fn) | Send a file as an octet stream. |
325-
| [res.sendStatus()](/en/4x/api/response#ressendstatusstatuscode) | Set the response status code and send its string representation as the response body. |
315+
| Method | Description |
316+
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
317+
| [res.download()](../../api/response#resdownloadpath--filename--options--fn) | Prompt a file to be downloaded. |
318+
| [res.end()](../../api/response#resenddata-encoding-callback) | End the response process. |
319+
| [res.json()](../../api/response#resjsonbody) | Send a JSON response. |
320+
| [res.jsonp()](../../api/response#resjsonpbody) | Send a JSON response with JSONP support. |
321+
| [res.redirect()](../../api/response#resredirectstatus-path) | Redirect a request. |
322+
| [res.render()](../../api/response#resrenderview--locals--callback) | Render a view template. |
323+
| [res.send()](../../api/response#ressendbody) | Send a response of various types. |
324+
| [res.sendFile()](../../api/response#ressendfilepath--options--fn) | Send a file as an octet stream. |
325+
| [res.sendStatus()](../../api/response#ressendstatusstatuscode) | Set the response status code and send its string representation as the response body. |
326326

327327
## app.route()
328328

329329
You can create chainable route handlers for a route path by using `app.route()`.
330-
Because the path is specified at a single location, creating modular routes is helpful, as is reducing redundancy and typos. For more information about routes, see: [Router() documentation](/en/4x/api/router).
330+
Because the path is specified at a single location, creating modular routes is helpful, as is reducing redundancy and typos. For more information about routes, see: [Router() documentation](../../api/router).
331331

332332
Here is an example of chained route handlers that are defined by using `app.route()`.
333333

@@ -388,7 +388,7 @@ app.use('/birds', birds);
388388

389389
The app will now be able to handle requests to `/birds` and `/birds/about`, as well as call the `timeLog` middleware function that is specific to the route.
390390

391-
But if the parent route `/birds` has path parameters, it will not be accessible by default from the sub-routes. To make it accessible, you will need to pass the `mergeParams` option to the Router constructor [reference](/en/4x/api/application#appusepath-callback--callback).
391+
But if the parent route `/birds` has path parameters, it will not be accessible by default from the sub-routes. To make it accessible, you will need to pass the `mergeParams` option to the Router constructor [reference](../../api/application#appusepath-callback--callback).
392392

393393
```js
394394
const router = express.Router({ mergeParams: true });

0 commit comments

Comments
 (0)