You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this issue while working on a SPA that passes names that may contain a dot in the URL. Using encodeURIComponent doesn't work on dots since they are valid in a URL path. As a workaround I manually performed a replace of the dots to encode them.
Currently the Server is treating all paths with a dot as a file extension, and rather than sending the index it is attempting to serve an asset with that name.
Would it be safe to change that line to verify that an asset by that name exists in the bundle, and if it doesn't then default to index?
The text was updated successfully, but these errors were encountered:
If a URL contains a dot in the path (Eg. http://localhost:1234/foo.bar), 404 is returned.
I came across this issue while working on a SPA that passes names that may contain a dot in the URL. Using encodeURIComponent doesn't work on dots since they are valid in a URL path. As a workaround I manually performed a replace of the dots to encode them.
This is due to line 56 in Server.js
Currently the Server is treating all paths with a dot as a file extension, and rather than sending the index it is attempting to serve an asset with that name.
Would it be safe to change that line to verify that an asset by that name exists in the bundle, and if it doesn't then default to index?
The text was updated successfully, but these errors were encountered: