Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HistoryApiFallback when publicPath is set #518

Closed
wants to merge 1 commit into from

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