-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 for #625 broken historyApiFallback #627
Conversation
Thanks! |
@SpaceK33z And serving the files without extensions or with |
@aves84, this solution doesn't break previous behavior. If you find a solution that doesn't break the old behavior (that is, showing the directory index instead of the page set with historyApiFallback), I'll happily merge a PR. |
@SpaceK33z in #625 I already wrote this solution - you need to extract I don't interested anymore making PR, everyone of which are reverted :/ I will prefer just to switch back to browserSync with normal behaviour. |
The problem earlier with the fix in #627 was that it broke serving files without extensions (or with `disableDotRule`). This passed the test because the `disableDotRule: true` was removed; without this the test will always succeed because without this rule, a request like `/other.html` will always go directly to the file.
@SpaceK33z, for me it works fine, thank you. |
@SpaceK33z @aves84 confirming things are working with this commit, glad that everyone will be happy again! |
Great. Thanks for your help! |
Fix is released in |
fixing broken historyApiFallback, with this one - tests are passed and we can use custom index or rewrites property of historyApiFallback