Skip to content
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

Does not see child page when generating the sitemap #11

Closed
Julien76 opened this issue Dec 8, 2017 · 1 comment
Closed

Does not see child page when generating the sitemap #11

Julien76 opened this issue Dec 8, 2017 · 1 comment
Labels

Comments

@Julien76
Copy link

Julien76 commented Dec 8, 2017

Hi,

Thanks for this module.
I have an issue and do not know if it's a bug or not.

I have some children pages which are not dynamic:

Here is the list of url:

/
/singlePageA   
/singlePageB
/parentA/
/parentA/childA
/parentA/childB

Here is the folder set-up in the directory pages

index.vue
singlePageA.vue   
singlePageB.vue
parentA.vue
parentA/
  index.vue    
  childA.vue
  childB.vue

Now if I run @nuxtjs/sitemap with the default value and just set generate: true, then only the following route are considered in the sitemap.xml:

/
/singlePageA   
/singlePageB
/parentA

Missing routes are:

/parentA/    <--- Note the trailing forward slash
/parentA/childA
/parentA/childB

My understanding is that as those routes are "static" children routes, they should be considered by the @nuxtjs/sitemap module. Am I wrong?
Do I have to define them manually?
If so, do you a know an easy way to generate a route list (json file) and inject it in the @nuxtjs/sitemap options

Thanks.

This question is available on Nuxt.js community (#c12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants