-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
send initialCanonicalUrl in array format to fix crawler issues (#69370)
The initial RSC payload currently provides the `initialCanonicalUrl` value to initialize the router state during the SSR render. However as noted in #53274, it seems crawlers like Googlebot will crawl anything URL-like that it finds in the document, regardless of whether or not it's actually rendered as a link somewhere (which this isn't). This splits the `initialCanonicalUrl` value into parts and then joins it when it's ready to be consumed. That way when it's embedded in the document, it's not in a path-like format. Fixes #53274 Closes NDX-243
- Loading branch information
Showing
5 changed files
with
25 additions
and
11 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
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