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

fix: add missing externalLink property to menu items for proper link handling #6179

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

FaheemOnHub
Copy link
Contributor

Description

This PR fixes #6173 and #6172, as both were related to same issue. This PR fixes an issue where certain menu items were incorrectly using the Link component for external URLs due to missing the externalLink property.
Gatsby's Link component should only be used for internal links, as per their guidelines. This caused warnings like:

"External link https://docs.layer5.io/ was detected in a Link component. Use the Link component only for internal links. See: https://gatsby.dev/internal-links"

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@l5io
Copy link
Contributor

l5io commented Jan 6, 2025

🚀 Preview for commit 9367e83 at: https://677c2284fa0c930df73a7edd--layer5.netlify.app

Copy link
Member

@leecalcote leecalcote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @FaheemOnHub. I see where two of the references have been made external. Good. Were there any others in the site other than these two?

@FaheemOnHub
Copy link
Contributor Author

@leecalcote

Thank you for the feedback! I checked the site and didn't find any other instances of Link warnings related to external references. It seems the two updated references were the only ones causing the issue. However, if there's a specific section or component, you'd like me to review again, please let me know, and I'd be happy to take another look.

@leecalcote leecalcote merged commit ce6ebfb into layer5io:master Jan 7, 2025
5 checks passed
@leecalcote
Copy link
Member

Thanks for confirming. It sounds like you've covered all the bases here. Excellent. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Build Warning: External link https://docs.layer5.io was detected in a Link component
3 participants