-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
VS Code links to docs pages that seem to no longer resolve #10271
Comments
@atsansone was this resolved? |
@mit-mit : I may need to create a hidden page that covers this. I checked with @kenzieschmoll about changing this in future DevTool versions. |
We still need older releases to work though. Can you just add redirects for the old Urls? |
Unfortunately, no. The Firebase JSON redirects can't point from URL fragment to URL fragment. (See angular/angular#45861.) So, this redirect can't be made: {
"source": "/get-started/install/:platform#update-your-path",
"destination": "/get-started/install/:platform/desktop?tab=download#add-flutter-to-your-path",
"type": 301
}, This is why I'm thinking about a hidden page. That way I can link to a whole page, rather than a URL fragment. |
OK, I've been familiarizing myself with the current way this is set up. Wow, what a labyrinthian implementation. I wasn't aware that you can't redirect (in Firebase) from one anchor on one page to another anchor on another page. Is this, perhaps, because the link also contains a platform variable? I'm tempted to suggest that the VSCode plugin be updated to do a Google search for "setting up path flutter platform", but changing VSCode isn't a desirable solution here. Let me think on it more. (I've also asked @parlough if he has any ideas.) |
Oh, about the hidden page idea. Would it require documenting how to set the path for ALL platforms and ALL shells on said page? If so, that seems pretty icky |
Actually, I think a better solution is to create a "go" link, such as "docs.flutter.dev/go/set-flutter-path" and that link can be changed without any issues, I think. Once again, this requires changing the VSCode plugin, as well as the site, but it feels much cleaner than the hidden page idea. (In general, we should use this solution for all links to the docs from our tools. Set up a go link that can easily be updated.) |
CC @DanTup |
Unfortunately, not in the traditional way with the setup chosen for the new pages since fragments aren't sent to the server. To support the old links, I added a JS based redirector in #10115. I accounted for some fragments from the framework, but not all of them. I can update those scripts and add one for Linux to account for more fragments. Edit: Opened #10357
For the future, yes please. This is what we do on the Dart site for destinations that pub wants to link to. Since we reserve |
I agree, creating stable URLs not tied to the specific structure of the site would be better. I can update the VS Code extension and push out a patch if new URLs are available. People tend to update the VS Code extension fairly quick, so old plugins hopefully aren't a bit problem for a long time - however |
…0357) This adds redirects from the `/get-started/install/<platform>` pages if a fragment (`#link-target-fragment`) from the old page format is specified. These JS based redirects are necessary as fragments aren't sent to the server, so Firebase redirects won't work. We likely won't maintain these indefinitely, but a lot of links referencing these still exist in old versions of tools and the internet, so we can keep them for the foreseeable future. Fixes #10271
Should I update the links in the VS Code extension too? If there may be shorter |
@DanTup I'd hold off on updating. I'll start some discussion on what path we're going for the If you have a chance, could you comment on that issue with the various destinations/topics that VS Code currently needs or might need links to? Thanks :D |
…utter#10357) This adds redirects from the `/get-started/install/<platform>` pages if a fragment (`#link-target-fragment`) from the old page format is specified. These JS based redirects are necessary as fragments aren't sent to the server, so Firebase redirects won't work. We likely won't maintain these indefinitely, but a lot of links referencing these still exist in old versions of tools and the internet, so we can keep them for the foreseeable future. Fixes flutter#10271
As part of the getting stated install flow, our VS Code plugins link to instructions in our docs for setting path using Urls like
https://docs.flutter.dev/get-started/install/windows#update-your-path
:https://github.com/Dart-Code/Dart-Code/blob/master/src/shared/constants.ts#L96
Did these Urls change recently? It looks like they no longer resolve. If so, we should put redirects in place.
The text was updated successfully, but these errors were encountered: