I'm building a webapp using Nextjs. As some parts of the app is server side rendering, I have two sitemaps. One generated by Next and the other one generated dynamically.
All pages are successfully added to the search console. However I have also some urls including the bracket slugs like
https://mywebsite.com/[mySlug]
https://mywebsite.com/[mySlug]/aaa
https://mywebsite.com/[myOtherSlug]/bbb
Those urls are not in the sitemaps. Do you have insight on why those urls are present into the search console results?
To be clearer, I have urls like
https://mywebsite.com/my_slug_1
https://mywebsite.com/my_slug_1/bbbb
And they are indexed correctly but the fact that https://mywebsite.com/[mySlug]
is indexed is not correct as the bracket slug is just a way to tell Next that the [mySlug]
can be any string possible
Thanks!
[mySlug]
should not be visible and crawled as there are no link leading to it