Add extensions: ['html'] to express.static so the .html-less URLs resolve to their matching files. Affects every static HTML route including /whitepapers/distributive-equity, /whitepapers/eu-policy-brief, etc. .html-suffixed URLs continue to work unchanged. Non-existent paths still return the friendly 404 via the notFound middleware. |
||
|---|---|---|
| .. | ||
| config | ||
| controllers | ||
| middleware | ||
| models | ||
| routes | ||
| services | ||
| utils | ||
| server.js | ||