Replies: 2 comments
-
parhaps to be in accordance with this definition the Example // routes/about.ts
export const sitemap: SitemapFunction = () => ({
alternateRefs: [
{
href: 'https://example.com',
hrefLang: 'en',
},
{
href: 'https://es.example.com',
hrefLang: 'es',
}
]
}) Into this <url>
<loc>https://example.com/about</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://example.com/about"
/>
<xhtml:link
rel="alternate"
hreflang="es"
href="https://es.example.com/about"
/>
<url>
<url>
<loc>https://es.example.com/about</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://example.com/about"
/>
<xhtml:link
rel="alternate"
hreflang="es"
href="https://es.example.com/about"
/>
<url> |
Beta Was this translation helpful? Give feedback.
-
It would be very useful for our application's usage of this package, if the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is open for think about how can be the api for help in applications with internationalized routing like
https://example/en/blog
orhttps://en.example.com/blog
.without
map
in each route theloc
for each languageBeta Was this translation helpful? Give feedback.
All reactions