Skip to content

Navigation Error: External URLs being treated as internal paths causing 404 #39296

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

Open
2 tasks done
LordAizen1 opened this issue May 8, 2025 · 0 comments
Open
2 tasks done
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@LordAizen1
Copy link

Preliminary Checks

Description

While browsing the Gatsby website, I discovered an error in the browser console when links to Netlify are clicked. The website is incorrectly treating external Netlify URLs as internal paths, which causes a failed network request and a 404 error.

Reproduction Link

https://www.gatsbyjs.com/

Steps to Reproduce

  1. Visit https://www.gatsbyjs.com/
  2. Open the browser console (F12)
  3. Click on any link that points to app.netlify.com
  4. Observe the 404 error in the console

Expected Result

External links to sites like Netlify should open in a new tab or navigate away from the site directly without generating any page-data.json requests.

Image

Actual Result

The site attempts to load a page-data.json file for what it thinks is an internal route, resulting in this error:
GET https://www.gatsbyjs.com/page-data/https://app.netlify.com/page-data.json net::ERR_ABORTED 404 (Not Found)

Environment

- Browser: Microsoft Edge Version 136.0.3240.50
- OS: Windows 11 Home

Config Flags

No response

@LordAizen1 LordAizen1 added the type: bug An issue or pull request relating to a bug in Gatsby label May 8, 2025
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant