Skip to content

Fix HistoryApiFallback when publicPath is set#518

Closed
meghprkh wants to merge 1 commit intowebpack:masterfrom
meghprkh:master
Closed

Fix HistoryApiFallback when publicPath is set#518
meghprkh wants to merge 1 commit intowebpack:masterfrom
meghprkh:master

Conversation

@meghprkh
Copy link

@meghprkh meghprkh commented Jun 30, 2016

Currently HistoryApiFallback does not work properly when publicPath as it redirects request to /index.html which gives as it does not exist, instead we should redirect to publicPath (which redirects to publicPath/index.html).

Fixes #216

Currently HistoryApiFallback does not work properly when publicPath as it redirects request to /index.html which gives as it does not exist, instead we should redirect to publicPath (which redirects to publicPath/index.html).

Fixes webpack#216
@SpaceK33z
Copy link
Member

This is kinda tricky stuff, and I'm not sure if it's always the case that you want to use the publicPath for this.

Do other people have this problem?

@SpaceK33z
Copy link
Member

Closing for now. #216 was already fixed by another PR. In the docs it's also documented that you need to use a custom index when using publicPath.

We could theoretically do this automatically, but this is a breaking change that I only want to do if more people have this problem. Will revisit this PR when that happens.

@SpaceK33z SpaceK33z closed this Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants