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

Can Link component be given an href for the purposes of SEO? #561

Open
atorcode opened this issue Aug 20, 2023 · 3 comments
Open

Can Link component be given an href for the purposes of SEO? #561

atorcode opened this issue Aug 20, 2023 · 3 comments

Comments

@atorcode
Copy link

I'm using the Link component for navbar links. I guess these don't set an href attribute so my lighthouse report is showing that they're bad for SEO. Anyone know the best way around this?

@atorcode
Copy link
Author

Currently, I'm resorting to creating an additional anchor element for each Link component just for crawlability, and then hiding them from users and screen readers.

@F1L1
Copy link

F1L1 commented Oct 3, 2023

@atorcode running into similar issues. Curious how you set metadata descriptions for each of those anchors. Just more hidden text?

@jodaka
Copy link

jodaka commented Mar 26, 2024

I think for the sake of SEO you can use Button instead of Link. Just add some CSS to remove appearance and border and you are good to go.

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

No branches or pull requests

3 participants