I noticed that by using <localized-link> the generated URL in the <a> tag is the "global" one and not the one with the language. This maybe could give SEO/Crawling problems with Google?
For example I have and /about page.
If I'm on / and have a <localized-link> to /about, it is fine.
If I'm on /fr/ and have a <localized-link> to /about, the generated link in the anchor tag will be /about and not /fr/about, even if by clicking it correctly go to the fr page.
It's there a workout to generated the "correct" url?
Edit:
Just saw the example and it works like I wanted, but it's using <localized-link to="..."> while I'm using
<localized-link :to="{name: 'product', params: { id: id }}">
Hi
I noticed that by using
<localized-link>
the generated URL in the<a>
tag is the "global" one and not the one with the language. This maybe could give SEO/Crawling problems with Google?For example I have and
/about
page.If I'm on
/
and have a<localized-link>
to/about
, it is fine.If I'm on
/fr/
and have a<localized-link>
to/about
, the generated link in the anchor tag will be/about
and not/fr/about
, even if by clicking it correctly go to thefr
page.It's there a workout to generated the "correct" url?
Edit:
Just saw the example and it works like I wanted, but it's using
<localized-link to="...">
while I'm usingso I guess I need to pass it in the params?