Skip to content

Commit 9a31b31

Browse files
authoredJun 15, 2020
fix: i18n rel-alternate-hreflang with router.base
fix #138
1 parent 5957733 commit 9a31b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/builder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function createSitemap(options, routes, base = null, req = null) {
7878
const locale = locales.find(({ code }) => code === lang) || { iso: lang }
7979
i18nRoute.links.push({
8080
lang: locale.iso,
81-
url: route.url,
81+
url: join('.', route.url),
8282
})
8383
} else {
8484
// No alternate link found

0 commit comments

Comments
 (0)
Please sign in to comment.