Open brunohoraeero opened 1 year ago
Hi, I have a language selector where I render every <NextLink /> passing the property locale so the URL uses the correct locale. But this is not being reflected and actually ignored by Link.
<NextLink />
locale
I was expecting that
<Link href={{ pathname: "/asdf", query: { test: "1234" }} locale="en" />
to result in something like /en/asdf?test=1234, but it is omitting the /en part.
/en/asdf?test=1234
/en
Any ideas what part of the next/link I may need to mock to be able to test this?
next/link
This is no help, but it looks like locale support is still missing: https://github.com/scottrippey/next-router-mock#not-yet-supported
Hi, I have a language selector where I render every
<NextLink />
passing the propertylocale
so the URL uses the correct locale. But this is not being reflected and actually ignored by Link.I was expecting that
to result in something like
/en/asdf?test=1234
, but it is omitting the/en
part.Any ideas what part of the
next/link
I may need to mock to be able to test this?