Navigation Error: External URLs being treated as internal paths causing 404 #39296
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
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
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.
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
Config Flags
No response
The text was updated successfully, but these errors were encountered: