Skip to content

Commit

Permalink
fix(dev-404-page): route to 404 fails when using plugin-remove-traili…
Browse files Browse the repository at this point in the history
…ng-slashes

updating other occurrence of 404 page check as well
  • Loading branch information
Ahmad Nassri authored Feb 8, 2018
1 parent b309deb commit d977b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/cache-dir/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function shouldUpdateScroll(prevRouterProps, { location: { pathname } }) {

let noMatch
for (let i = 0; i < pages.length; i++) {
if (pages[i].path === `/dev-404-page/`) {
if (/^\/dev-404-page/.test(pages[i].path)) {
noMatch = pages[i]
break
}
Expand Down

0 comments on commit d977b3f

Please sign in to comment.