We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ad469b commit 40df85eCopy full SHA for 40df85e
packages/gatsby/src/commands/develop.js
@@ -176,7 +176,7 @@ async function startServer(program) {
176
// Render an HTML page and serve it.
177
app.use((req, res, next) => {
178
const parsedPath = parsePath(req.path)
179
- if (parsedPath.extname === `` || parsedPath.extname.startsWith(`.html`)) {
+ if (parsedPath.extname === `` || parsedPath.extname.startsWith(`.html`) || parsedPath.path.endsWith(`/`)) {
180
res.sendFile(directoryPath(`public/index.html`), err => {
181
if (err) {
182
res.status(500).end()
0 commit comments