Commit efaee65 1 parent 9678bbb commit efaee65 Copy full SHA for efaee65
File tree 1 file changed +5
-3
lines changed
packages/react-scripts/config
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -664,9 +664,11 @@ module.exports = function(webpackEnv) {
664
664
navigateFallbackBlacklist : [
665
665
// Exclude URLs starting with /_, as they're likely an API call
666
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 ( '/[^/]+\\.[^/]+$' ) ,
667
+ // Exclude any URLs whose last part seems to be a file extension
668
+ // as they're likely a resource and not a SPA route.
669
+ // 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 ( '/[^/?]+\\.[^/]+$' ) ,
670
672
] ,
671
673
} ) ,
672
674
// TypeScript type checking
You can’t perform that action at this time.
0 commit comments