-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove
x-default
alternate links entry for non-root pathnames …
…when using `localePrefix: 'always'` (#805) Closes #799 **Before:** ``` link: <https://example.com/en/about>; rel="alternate"; hreflang="en", <https://example.com/de/about>; rel="alternate"; hreflang="de", <https://example.com/about>; rel="alternate"; hreflang="x-default" ``` **After:** ``` link: <https://example.com/en/about>; rel="alternate"; hreflang="en", <https://example.com/de/about>; rel="alternate"; hreflang="de" ``` **Notes:** - Only non-root pathnames are affected, the root (`/`) will still include the `x-default` entry. - The `x-default` entry is considered optional and we're still providing all links to localized pages, therefore this is fine from an SEO perspective.
- Loading branch information
Showing
5 changed files
with
48 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,7 +138,7 @@ | |
}, | ||
{ | ||
"path": "dist/production/middleware.js", | ||
"limit": "5.8 KB" | ||
"limit": "5.81 KB" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c5bb0f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-intl-docs – ./docs
next-intl-docs-git-main-next-intl.vercel.app
next-intl-docs.vercel.app
next-intl-docs-next-intl.vercel.app
c5bb0f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-intl-example-app-router – ./examples/example-app-router
next-intl-example-app-router.vercel.app
next-intl-example-next-13.vercel.app
next-intl-example-app-router-git-main-next-intl.vercel.app
next-intl-example-app-router-next-intl.vercel.app