Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocxl committed Oct 24, 2023
1 parent bc2b36a commit 4c1c523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/link/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Link = forwardRef(
const currentLocale = useLocale()
const isChangingLocale = localeProp !== currentLocale
const locale = localeProp ?? currentLocale
const localizedHref = `/${locale}/${href}`
const localizedHref = `/${locale}${href}`

if (isChangingLocale && prefetch) {
if (process.env.NODE_ENV !== 'production') {
Expand Down

0 comments on commit 4c1c523

Please sign in to comment.