Closed WooHoo-Wu closed 2 months ago
I use @nuxtjs/seo, the latest sitemap version
help me !!!
When I set differentDomains: true, you will add /. I can't remove it in hooks('sitemap:resolved'). I need to set differentDomains: true, and the sitemap URL does not need to be followed by /. What should I do?
Version v5.2.1 is OK, but nuxtjs/seo will update your version, which leads to this problem
Can you make a reproduction? The only thing I can think of is that you've set the trailing slashes option somewhere.
reproduction: https://stackblitz.com/edit/nuxt-starter-h71ojo?file=package.json
result:
Please help me🥺
The above link can reproduce this problem. I didn't set anything. Shouldn't it remove the trailing slash by default?
It adds it now and I can't remove it? No matter what method I use, hooks can't remove it
Yes I can confirm it's a bug, I'll take a look when I have a chance.
Ok please asap I need it badly
I debugged it myself and found that it was the problem at this location. I hope it will be helpful.
Should be fixed in 6.0.0-beta.5 :+1:
The @nuxtjs/seo module version is still 6.0.0-beta.2. I reinstalled @nuxtjs/sitemap and changed its version to 6.0.0-beta.5, but it still does not take effect in the production environment. What should I do?
https://stackblitz.com/edit/nuxt-starter-h71ojo?file=package.json,nuxt.config.ts
It seems that the repair was not successful
Seems fine to me, please make sure you update your lock file.
thanks
📚 What are you trying to do?
🔍 What have you tried?
No response
ℹ️ Additional context
No response