-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当i18n DifferentDomains 为True时生成的站点地图内容不正确 #172
Comments
Please share your i18n config. |
以下是我的i18n配置示例
|
Why are the domains not wrapped in strings? Can you try and provide a StackBlitz reproduction https://stackblitz.com/edit/nuxt-starter-jwuie4?file=app.vue |
这个是发评论时 漏掉了 引号。
|
我在 https://stackblitz.com/edit/nuxt-starter-jwuie4?file=app.vue 中完善了示例代码,生成的站点地图 |
我找到 hr-HR-sitemap.xml 的源码了, 现在生成的格式如下:
正确的格式应该是:
|
Hey @gaoxu529, is this happening in the latest version (v5)? |
Yes, this occurred in V5. I have improved the example code at https://stackblitz.com/edit/nuxt-starter-jwuie4?file=app.vue. The format that is currently generated is as follows:
But the correct format should be:
|
Something similar was happening on the i18n pages. I’ll take a look as soon as I’m free. Thanks for the example! |
In 5.3.1 the app sources and |
Describe the bug
这是当i18n DifferentDomains 为True时生成的站点地图,如下图所示:

hourly 2023-11-20T09:42:24+00:00 https://www.footballant.com/ hourly 2023-11-20T09:42:24+00:00 https://www.footballant.com/about然而,正确的格式应该是这样的:
Reproduction
No response
System / Nuxt Info
No response
The text was updated successfully, but these errors were encountered: