using both filter and defaults does not work when following README.md

miteyema
0
miteyema
commented 2 months ago

If you blindly copy the code from the documentation for both filter (to have trailing slashes) and defaults (to set default values for all routes), the sitemap.xml has URLs with trailing slashes, but the URLs do not have the default values. This is because the map function used in the code example for filter to have trailing slashes, throws away everything but the URL. Changing the documentation would prevent other people having the same issue if they would blindly copy/paste the code from the documentation.

0
miteyema
0
miteyema
commented 2 months ago

I made a PR to fix the doc, please see https://github.com/nuxt-community/sitemap-module/pull/71

0
Informations
Question โ€ข Unresolved
#c54 - Created 2 months ago