-
Notifications
You must be signed in to change notification settings - Fork 189
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
add spa fileserver to the web service #3109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just small nitpicks
Please do not merge till owncloud/web#6363 is merged |
converted to draft until owncloud/web#6363 is merged, so we don't accidentially merge this |
88c05d7
to
423164a
Compare
💥 Acceptance test Core-API-Tests-ocis-storage-5 failed. Further test are cancelled... |
423164a
to
f9c976a
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
Adding a custom fileServer implementation was neede due the requirement of having nice and clean URLs without a hash
http://foo.tld/#foo/bar
. To get a more detailed insight please read 6277.The implementation behaves similar to the nginx try_files setting and always falls back to the index.html file if a requested resource is not found.
It also injects a
base
tag into the html files which is needed for web to sniff what mode to use (hash
orhistory
).We cannot get rid of the
hash
mode for now because we still use it in oc10 and maybe in custom deployments.A nice side effect is that we're now able to re-enable cache headers for the web service.
Related Issue
Motivation and Context
... nice URLS
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: