I am creating a new app with react-router and I've confronted with this follow trouble:
When I insert a URL with http://localhost:3000/app/, trailing slash in the end of URL, it returns the message Uncaught SyntaxError: Unexpected token <, however when I insert the same URL but without trailing slash in the end, http://localhost:3000/app, it works!
How can I keep a pattern of not use the trailing slash in the end of URL and redirect all who has this kind to URLs which not have this?