Can't download files by clicking on file link on NCBI bcms
Clicking on File in files tab does not download file on NCBI deployed bcms
Expected behaviour
should download file
Current behaviour
incorrectly routes the download request
Steps to reproduce
- Deploy application without setting the SERVER_HOST environment variable (as is done at NCBI Openshift)
- Navigate to Files tab of a book with files
- Click on a file to download it
- React Router will try to interpret the route instead of requesting the route from the server
Environment
All browsers, production environment,
Possible solution
Use relative paths in webpack.config.js during build time
Priority
- Resolving this bug is required for migration (N)
- This can be prioritized after migration (N)