We need to restore the anchor alias, since documentation such as Express still depends on those anchors, and the Express team still needs time to update them. I’m also sure that many other sites may still be relying on those anchors.
For reference, here is what the old generator was doing: https://github.com/nodejs/node/blob/v23.x/tools/doc/html.mjs#L472-L473. This is mainly needed for the legacy generator, but also for the new one.
ref: https://openjs-foundation.slack.com/archives/C09EXEEHFKP/p1773605198090049
We need to restore the anchor alias, since documentation such as Express still depends on those anchors, and the Express team still needs time to update them. I’m also sure that many other sites may still be relying on those anchors.
For reference, here is what the old generator was doing: https://github.com/nodejs/node/blob/v23.x/tools/doc/html.mjs#L472-L473. This is mainly needed for the legacy generator, but also for the new one.
ref: https://openjs-foundation.slack.com/archives/C09EXEEHFKP/p1773605198090049