Skip to content

Commit

Permalink
Support URLs that end in SemVer ranges
Browse files Browse the repository at this point in the history
Fixes #3164.
  • Loading branch information
danoc committed Dec 21, 2017
1 parent b3eb383 commit 2d23fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/commands/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async function startServer(program) {
// Render an HTML page and serve it.
app.use((req, res, next) => {
const parsedPath = parsePath(req.path)
if (parsedPath.extname === `` || parsedPath.extname.startsWith(`.html`)) {
if (parsedPath.extname === `` || parsedPath.extname.startsWith(`.html`) || parsedPath.path.endsWith(`/`)) {
res.sendFile(directoryPath(`public/index.html`), err => {
if (err) {
res.status(500).end()
Expand Down

0 comments on commit 2d23fb4

Please sign in to comment.