Skip to content
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 Extension redirect is buggy #4248

Open
1 of 2 tasks
jorgeorpinel opened this issue Jan 19, 2023 · 7 comments
Open
1 of 2 tasks

VS Code Extension redirect is buggy #4248

jorgeorpinel opened this issue Jan 19, 2023 · 7 comments
Labels
A: website Area: website p2-nice-to-have Less of a priority at the moment. We don't usually deal with this immediately. 🐛 type: bug Something isn't working.

Comments

@jorgeorpinel
Copy link
Contributor

jorgeorpinel commented Jan 19, 2023

Report

But it's the issue with the internal redirects as pointed by @rogermparent

Weird interaction with redirects that look like local pages, which are handled differently by the Gatsby's SPA via the Link component

  • Find a way to ensure that links to local page redirects are recognized as such and treated as external links
@jorgeorpinel jorgeorpinel added 🐛 type: bug Something isn't working. A: website Area: website dependencies Pull requests that update a dependency file (automatic) labels Jan 19, 2023
@jorgeorpinel
Copy link
Contributor Author

Cc @iterative/websites

@rogermparent
Copy link
Contributor

Weird interaction with redirects that look like local pages, which are handled differently by the Gatsby's SPA via the Link component. From what I can see, we'll have to:

  • Find a way to ensure that links to local page redirects are recognized as such and treated as external links (either automatically or manually, with pros/cons to each)
  • Possibly fight with gatsby-plugin-catch-links because it's kind of kludgy and invasive.

It's a bit late for me, but I can get a patch in early tomorrow if it's not already done.

@jorgeorpinel
Copy link
Contributor Author

jorgeorpinel commented Jan 19, 2023

Sounds good. I don't think it's critical or anything, but it sure looks like a bug. Feel free to relabel though.

@yathomasi
Copy link
Contributor

I remember fixing a similar issue mentioned for cml.dev.

But, I don't see that issue with dvc.org. Could it be a cache issue?

  • Firefox

Screenshot 2023-01-19 at 14 24 53

  • Chrome

Screenshot 2023-01-19 at 14 25 05

  • Also working fine with Safari

@jorgeorpinel
Copy link
Contributor Author

Works OK after force-reload... 🤦🏼 Sorry for false alarm!

@jorgeorpinel jorgeorpinel removed 🐛 type: bug Something isn't working. dependencies Pull requests that update a dependency file (automatic) labels Jan 19, 2023
@yathomasi yathomasi added 🐛 type: bug Something isn't working. p2-nice-to-have Less of a priority at the moment. We don't usually deal with this immediately. labels Jan 19, 2023
@yathomasi yathomasi reopened this Jan 19, 2023
@yathomasi
Copy link
Contributor

yathomasi commented Jan 19, 2023

The issue seems genuine. Since it's not the direct link issue similar to cml.dev, so I guess it's not critical as mentioned. I have updated the description and assigned the priority accordingly.

@rogermparent
Copy link
Contributor

rogermparent commented Jan 19, 2023

I'm pretty sure it's just a generic behavior that'll happen using Gatsby's Link on things that aren't actually local links, but our wrapper Link component only reads the URL when making that decision. We have optOutPreRedirect on these markdown links, which would otherwise automatically transform the links into the absolute form, which would solve the problem but in a way I assume we also don't really want because we would never see the redirect in the links, and at that point just replacing the redirect with absolute links would work the same.

As far as gatsby-plugin-catch-links, it intercepts all links and applies the same behavior, so that's why I expect it to be a problem after the first issue is solved, but both problems need to be solved in order to properly use these redirects. I think I remember a long while ago dealing with this for cml.dev when there was a link for that in the sidebar, but things have changed a lot since then.

@dberenbaum dberenbaum closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2024
@dberenbaum dberenbaum reopened this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: website Area: website p2-nice-to-have Less of a priority at the moment. We don't usually deal with this immediately. 🐛 type: bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

4 participants