Skip to content

Comments

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

Merged
leecalcote merged 1 commit intolayer5io:masterfrom
FaheemOnHub:issue/faheemonhub/6173
Jan 7, 2025
Merged

fix: add missing externalLink property to menu items for proper link handling#6179
leecalcote merged 1 commit intolayer5io:masterfrom
FaheemOnHub:issue/faheemonhub/6173

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.

…handling

Signed-off-by: TheFaheem <faheemmushtaq89@gmail.com>
@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

Projects

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