connect-history-api-fallback icon indicating copy to clipboard operation
connect-history-api-fallback copied to clipboard

Fallback to index.html for applications that are using the HTML 5 history API

Results 12 connect-history-api-fallback issues
Sort by recently updated
recently updated
newest added

**Issue**: We detected vulnerable dependencies in your project by using the command “npm audit”: #### npm audit report diff

Hey there, I was looking at the implementation here as a I guide for the correct way to implement fallback in my own application. I noticed this package is using...

Suppose my png is on `/logo.png` directory. Now if i access this on `/` route it works fine but when I access this on a nested route like `/nested/logo.png` this...

Hello, Currently, it appears that this does not accept `HEAD` requests with the default configuration, which results in `404` errors for those requests. Is there a way to allow this...

Hi, `connect-history-api-fallback` seems to disable Express's ability to handle trailing slashes, which normally just get removed. For example: - https://my.app/signup - works. - https://my.app/signup/ - fails. It seems like there...

Sometimes i want load another html file, and also want load default index.html when file not exist. (Such as webpack-dev-sever historyApiFallback)

It's unreasonable to serve html for non-html requests with status code 2xx. so connect-history-api-fallback shouldn't redirect to index page if browsers don't explicitly accept html, thus `options.htmlAcceptHeaders` should default to...

I had to add this code to fix the static path of my website ``` app.use(history({ rewrites: [ { from: /^\/articles\/static.*$/, to(context) { const staticPathWithHistory = context.parsedUrl.pathname.replace('/articles', ''); return `/${staticPathWithHistory}`;...

app.use(express.static(path.resolve(__dirname, config.outputDir))); app.use(express.static(path.resolve(__dirname, './../files'))); app.use(history({ })); app.use(express.static(path.resolve(__dirname, config.outputDir))); app.use(express.static(path.resolve(__dirname, './../files'))); when i set this. it found static/js/xxx.js not found ![image](https://user-images.githubusercontent.com/7627191/34806227-b7459792-f6bc-11e7-8e36-a1034f527c7f.png)