Skip to content

Conversation

@talensjr
Copy link
Contributor

I changed the includes check for creating matchPath of 404 pages by a regexp.
The current includes was checking /404/, but since I am using the gatsby-plugin-remove-trailing-slashes, my matching string should be just /404, so I think it would be better to check both, and so is why I used a regexp which I think it does the job very well. It checks for / then 404 then an optional / and then it should be the end of the string (/404/?$)

Copy link
Owner

@wiziple wiziple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change back unrelated code changes.

@talensjr
Copy link
Contributor Author

Done! Sorry about that 😃

Copy link
Owner

@wiziple wiziple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍👍👍👍

@wiziple wiziple changed the base branch from master to versions/0.2.8 August 9, 2019 23:36
@wiziple wiziple merged commit a80d2b0 into wiziple:versions/0.2.8 Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants