angular-cn/aio/content
George Kalpakas 6abbaaed89 fix(docs-infra): do not use an Angular element in hard-coded `FETCH_ERROR` document (#27250)
The `FETCH_ERROR` document is used when we are unable to retrieve a
document (except for 404 errors), which includes when there is no
internet connection. Using the `<current-location>` element in the
document's template to show the path of the page we failed to retrieve
assumes that the element's bundle is available (e.g. cached by the SW)
or can be fetched from the server.

When none of these conditions is met, the `DocViewer` is unable to
prepare the document and fails, never showing the `FETCH_ERROR` page to
the user.

Furthermore, the path we are looking to retrieve via
`<current-location>` is essentially the document ID, which we already
have. Thus, loading and instantiating a whole component just for that is
overkill.

This commit addresses both issues by getting rid of the
`<current-location>` component and directly embedding the document ID
into the `FETCH_ERROR` content.

PR Close #27250
2018-12-05 13:26:27 -08:00
..
cli docs: add link to workspace config page (#26927) 2018-11-15 21:19:45 -08:00
cli-src build(docs-infra): make the git ref for cli command docs configurable (#26391) 2018-10-11 12:57:49 -07:00
examples docs: fix dynamic-component-loader example for Adblock Plus + EasyList (#27212) 2018-11-30 13:35:38 -08:00
guide docs: fix dynamic-component-loader example for Adblock Plus + EasyList (#27212) 2018-11-30 13:35:38 -08:00
images docs: fix dynamic-component-loader example for Adblock Plus + EasyList (#27212) 2018-11-30 13:35:38 -08:00
marketing fix(docs-infra): do not use an Angular element in hard-coded `FETCH_ERROR` document (#27250) 2018-12-05 13:26:27 -08:00
tutorial docs: fix typo in toh-pt6.md (#27403) 2018-12-03 08:24:19 -08:00
file-not-found.md fix(docs-infra): do not create an anchor for the `file-not-found` header (#27250) 2018-12-05 13:26:26 -08:00
license.md docs(common): update copyright years (#21232) 2018-01-04 17:45:36 -05:00
navigation.json docs: configuration file reference (#26484) 2018-10-30 13:44:52 -04:00