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 9678bbb commit efaee65Copy full SHA for efaee65
packages/react-scripts/config/webpack.config.js
@@ -664,9 +664,11 @@ module.exports = function(webpackEnv) {
664
navigateFallbackBlacklist: [
665
// Exclude URLs starting with /_, as they're likely an API call
666
new RegExp('^/_'),
667
- // Exclude URLs containing a dot, as they're likely a resource in
668
- // public/ and not a SPA route
669
- new RegExp('/[^/]+\\.[^/]+$'),
+ // Exclude any URLs whose last part seems to be a file extension
+ // as they're likely a resource and not a SPA route.
+ // URLs containing a "?" character won't be blacklisted as they're likely
670
+ // a route with query params (e.g. auth callbacks).
671
+ new RegExp('/[^/?]+\\.[^/]+$'),
672
],
673
}),
674
// TypeScript type checking
0 commit comments