index.html
for file requests (#15401)
Previously, all URLs were rewritten to `index.html` in order to support deep-linking. This works when navigating to URLs that correspond to existing resources. E.g. navigating to `/tutorial` returns `index.html` and then the `DocViewer` takes over and requests `tutorial.json`. Navigating to a non-existent URL (e.g. `/foo`), will return `index.html`, which in turn requests (the non-existent) `foo.json` and throws an error when trying to parse the returned `index.html` as JSON. This commit fixes it by only rewriting URLs that do not request a file (i.e. do not include a `.` in the last path segment). Fixes #15398
Safari (7+), iOS (7+), Edge (14) and IE mobile (11) are tested on BrowserStack.
Angular
Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript (JS) and other languages.
Quickstart
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%