I have noindex enabled in my entire Vue app using { name: 'robots', content: 'noindex' }, but I want to enable it just for some pages. I am using Vue 2 and webpack 4.46.0.
Is there a way to disable noindex for specific pages or should I overwrite it with some custom meta tags or maybe do something else? Thanks in advance.
'noindex'you could call a function returning'index,follow'or'noindex,nofollow', depending on the current router path. AFAIK navigation using#is probably not counted as a different page so Google will not reconsider the robot meta tag when navigating using vue router.nuxt.config.jsfile and my meta look like this:meta: [...meta({ title, description, homepage })]and my meta function is defined in another file. However, I am not sure if I will be able to access the route in this nuxt config file.