Skip to content

Are there any SEO (search engine optimization) issues with using useRouter without Link component? #62496

Answered by makibat
gonta1026 asked this question in Help
Discussion options

You must be logged in to vote

Yes, router.push('/example') does perform client-side navigation, but it doesn't create a <a> tag, so your links won't be detected by crawlers, which is inherently bad for SEO.

You should always use <Link> for navigation, unless you have a specific requirement for using useRouter, for example if you need to redirect users based on the result of some task.

Hope that helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gonta1026
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants