-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Server returns 404 for paths that contain spaces #5064
Comments
I have just migrated from v1.0.0-beta.31 to v1.0.0-rc.0 and found out that the Live Development Server needs to add "src" into the URL. Instead of "http://localhost:4200/app/..." it should be "http://localhost:4200/src/app/...". |
Last working: Broken: Tested: Not among the known breaking changes. Looking for a way to revert global install to 1.0.0-beta.31 in order to create new projects where assets work. @sumitarora @maximedupre The issue title could be changed to "Server returns 404 for all asset paths without src/". |
I'm not sure this accurate, because if I just change the name of my file to contain no spaces, and link to it without "src/", it works. |
Perhaps we're seeing two separate issues here. My asset URLs fail without any spaces in http://localhost:4200/styles.css doesn't work, redirects to server root |
Same problem here, resource name with space, error 404. Windows 7, node 7.7.2, npm 4.1.2, @angular/cli: 1.0.0-rc.1 |
@sumitarora I think you were investigating this issue, or a similar one. Did you find a solution? |
Like @Daedalon, I seem to have run into the issue with styles.css. No space in the filename here, but styles.css was returning a 404 when specifying just styles.css as the href in the link tag, in index,html, but prefixing it with src/ resolved the issue. FWIW, the ToH tutorial router section directs users to add styles.css to index.html using:
which doesn't appear to work for CLI-generated apps. |
At least for the issue this ticket was created for, it is fixed in Edit: Nvm... |
@maximedupre The issues I experienced with styles.css etc. were resolved in 1.0. |
@Daedalon We were having different issues though. Too bad mine wasn't also fixed in 1.0. |
Fixed in 1.0.3 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm stuck at
v1.0.0-beta.31
because with every version after that (includingv1.0.0-rc.0
), the server returns 404 when making a request to a path that contains spaces, for example: "http://localhost:4200/app/resources/drumkits/acoustik%20GM/Acoustic%20Bass%20Drum.wav"I'm on macOS
v10.12.3
and nodev6.9.5
.The text was updated successfully, but these errors were encountered: