-
Notifications
You must be signed in to change notification settings - Fork 684
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
Bad URL #2518
Comments
The link is under the "Other resources" section(first link), link title is "Fetch Data Dynamically" and description is "a tutorial from A Game of Darts, shows two different ways to use HttpRequest to get a JSON file." and it fails with 404. |
Also, the issue should be moved to "dart-lang/sdk", as an API page generated from comments in code. I can create PR to fix this, but I'm not sure is simply removing these two links is good enough. Also, we can add a link to https://dart.dev/tutorials/web/fetch-data, as it has some explanation about HttpRequest. |
Thanks for the report, @manosrenieris, and for the analysis, @zhesha. I think we should update the API doc comments (dart-lang/sdk) and add a redirect on site-www to fetch-data. |
@kwalrath I want help, but I am not sure how. I think we should remove two links to "tutorial from A Game of Darts" because there is no such tutorial. And add a new link to https://dart.dev/tutorials/web/fetch-data. If I'm right I will create PR tomorrow. If you need more time to investigate how to change these links, I'll wait. |
It's been a long time since I modified the API docs, but it should be possible via a dart-lang/sdk PR (cc me!). As to creating a redirect, you'd do that by adding an entry to the long list in https://github.com/dart-lang/site-www/blob/master/firebase.json. |
As for "A Game of Darts", it's just the old name for the Dart tutorials. The equivalent today would be https://dart.dev/tutorials. |
As "Forms" tutorial doesn't mentions `HttpRequest ` the link was removed from a doc. And Link to "Fetch Data Dynamically" was updated, so description and URL become correct. Issue from "site-www" repo [](dart-lang/site-www#2518) Closes #42696 #42696 GitOrigin-RevId: 34d006a Change-Id: If3d55af29ae89594b45544dd308b60ac670f2032 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154401 Reviewed-by: Kevin Moore <kevmoo@google.com> Commit-Queue: Kevin Moore <kevmoo@google.com>
Added redirect according to dart-lang#2518
@kwalrath I have created PR to dart-lang/sdk, and it already merged. |
Thank you, @zhesha! Your change looks good, except that the URL should be a host-agnostic path. Could you create a PR for the change? (I could, but then you wouldn't get credit.)
|
I have created the right patch master...zhesha:patch-2 . But I don't have a button to close the previous one. Also, as I can see there are some changes in API docs comments in dart-lang/sdk repo, so will you regenerate API doc section on site? |
The API doc gets regenerated automatically, but it takes a while for changes to make their way to the stable channel. You can check out the latest generated docs by going to the |
URL: https://www.dartlang.org/docs/tutorials/fetchdata/
Linkedfrom: https://api.dart.dev/stable/2.8.4/dart-html/HttpRequest-class.html
Expected page: Possibly https://dart.dev/tutorials/web/fetch-data
The text was updated successfully, but these errors were encountered: