You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,14 @@ This setting will add a default `/` entry to the sitemap XML when none is presen
208
208
209
209
> `required:` NO | `type:` bool | `default:` true
210
210
211
+
### Default language URL (x-default)
212
+
213
+
This setting will add an additionnal `<link />` tag into each sitemap urls bundles with value `hreflang="x-default"` and the path of your choice. The hreflang x-default value is used to specify the language and region neutral URL for a piece of content when the site doesn't support the user's language and region. For example, if a page has hreflang annotations for English and Spanish versions of a page along with an x-default value pointing to the English version, French speaking users are sent to the English version of the page due to the x-default annotation. The x-default page can be a language and country selector page, the page where you redirect users when you have no content for their region, or just the version of the content that you consider default.
214
+
215
+
###### Key: `defaultLanguageUrlType`
216
+
217
+
> `required:` NO | `type:` string | `default:` ''
218
+
211
219
## 🔧 Config
212
220
Config can be changed in the `config/plugins.js` file in your Strapi project.
hint={formatMessage({id: 'sitemap.Settings.Field.DefaultLanguageUrlType.Description',defaultMessage: 'Generate a link tag and attribute hreflang=x-default with the URL of your choice.'})}
104
+
label={formatMessage({id: 'sitemap.Settings.Field.DefaultLanguageUrlType.Label',defaultMessage: 'Default language URL type'})}
{formatMessage({id: 'sitemap.Settings.Field.DefaultLanguageUrlType.Option.DefaultLocale',defaultMessage: 'Default language URL of bundles (generated from default locale URL)'})}
0 commit comments