Hi,

We have a site which is using the Views Metatag module. It seems like the views are generating the Canonical URL for the views each time a person filters a category. Google in turn is picking this up as a new page and has started indexing the pages as unique pages. This is not correct as the canonical url should only be /directory and not /directory?category=whatever etc.

I looked in the issue queue and found this https://www.drupal.org/node/2724755 which refers to this. Not sure what the end solution was because canonical does not seem to be working but the last comment in the post says And all ok with canonical url.

We tried a few options like hardcoding the URL and also using the [current-page:url:absolute] token. None of these options worked.

Anyone have the same issue?

I am using Drupal 7.53 and Metatag 7.21 i.e. the latest stable release.

Thanks.

Comments

Sohal Khatwani created an issue.