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
{{ message }}
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
But the glossary otherwise lives in latest/glossary.html and its links are relative, so this broken link issue is only a problem for the version under guide/
Right. I was stuck. The partial file exists only because someone might have an old link to it. The proper solution is a redirect to the current location. I don't know how to do redirects so this was a hack that obviously isn't up to the task.
If someone can teach me how we do redirects, we can fix this one and a few other cases where I used this inferior technique.
Tossing it back to @naomiblack to find the info or the person who can help me.
On a related note, would it not be preferable to have a single "top-level" glossary, rather than the current situation in which the glossary happens to be a chapter in the basic dev. guide? If I understand the current issue reported here, migrating the glossary to the top-level may help address this problem.
We have a glossary from google with a lot of broken regions and the good one. We should think about removing one and redirect to the good one or similar.
@wardbell : Have you tested #1836 with an actual deploy? Under firebase v2 it might accept the "type", but using v3 is gives an error:
Error: hosting.rewrites[4] additionalProperty "type" exists in instance when not allowed
Removing both "type": 301 entries allows the deploy to proceed.
Hopefully Naomi can deploy and we can confirm that the 301 redirects work.
@naomiblack : when will angular.io be migrating to firebase v3 (if at all)? It nicely supports host aliases which makes it much easier for non-googlers to deploy to firebase (without editing the firebase.json file every time).
Btw, while there are currently no visibly broken links in the glossary, the Dart side glossary entries redirect to the TS-side glossary (which is wrong) - #1838. So, if once the 301 redirect has been confirmed to work then we'll be able to fix that.
Btw, #1832 was fixing other issues, but in that PR I change the public/docs/{ts,dart}/latest/guide/glossary.jade as follows:
- != partial("../glossary")+ include ../glossary
I don't think that there is any reason to favor the Harp import (via partial) vs the Jade include. In fact, using Jade allows proper file paths to be used in makeExample mixins (rather than the path hacks that used to be there like makeExample('../docs/_fragments/architecture/ts/app/app.component.ts', ...).
Activity
naomiblack commentedon Apr 20, 2016
ahh. I see the problem. These broken links are in https://angular.io/docs/ts/latest/guide/glossary.html, which is created by including
in the file
latest/guide/glossary.jadeBut the glossary otherwise lives in
latest/glossary.htmland its links are relative, so this broken link issue is only a problem for the version under guide/Is that even linked anywhere...?
wardbell commentedon Apr 22, 2016
Right. I was stuck. The partial file exists only because someone might have an old link to it. The proper solution is a redirect to the current location. I don't know how to do redirects so this was a hack that obviously isn't up to the task.
If someone can teach me how we do redirects, we can fix this one and a few other cases where I used this inferior technique.
Tossing it back to @naomiblack to find the info or the person who can help me.
chalin commentedon May 24, 2016
On a related note, would it not be preferable to have a single "top-level" glossary, rather than the current situation in which the glossary happens to be a chapter in the basic dev. guide? If I understand the current issue reported here, migrating the glossary to the top-level may help address this problem.
Foxandxss commentedon Jun 17, 2016
So we still get reports of this problem.
We have a glossary from google with a lot of broken regions and the good one. We should think about removing one and redirect to the good one or similar.
wardbell commentedon Jul 6, 2016
This should be fixed in the real server (but not locally!) by the firebase redirect in PR #1836
chalin commentedon Jul 6, 2016
The redirects seem like the right way to go.
@wardbell : Have you tested #1836 with an actual deploy? Under firebase v2 it might accept the "type", but using v3 is gives an error:
Removing both
"type": 301entries allows the deploy to proceed.Hopefully Naomi can deploy and we can confirm that the 301 redirects work.
@naomiblack : when will angular.io be migrating to firebase v3 (if at all)? It nicely supports host aliases which makes it much easier for non-googlers to deploy to firebase (without editing the
firebase.jsonfile every time).Btw, while there are currently no visibly broken links in the glossary, the Dart side glossary entries redirect to the TS-side glossary (which is wrong) - #1838. So, if once the 301 redirect has been confirmed to work then we'll be able to fix that.
chalin commentedon Jul 6, 2016
Btw, #1832 was fixing other issues, but in that PR I change the
public/docs/{ts,dart}/latest/guide/glossary.jadeas follows:I don't think that there is any reason to favor the Harp import (via
partial) vs the Jadeinclude. In fact, using Jade allows proper file paths to be used inmakeExamplemixins (rather than the path hacks that used to be there likemakeExample('../docs/_fragments/architecture/ts/app/app.component.ts', ...).docs(glossary): general cleanup and fix links
docs(glossary): general cleanup and fix links
docs(glossary): general cleanup and fix links
docs(glossary): general cleanup and fix links
docs(glossary): general cleanup and fix links (#2100)