L
L
Lici2013-07-23 19:25:19
CMS
Lici, 2013-07-23 19:25:19

Problem with "Canonical" tag in Drupal 7?

There are pages on the site with addresses in the form:
site.ru/novost-dnja
, you can go to
site.ru/novost-dnja.eofvqrfqlsht
site.ru/novost-dnja?eofvqrfqlsht
site.ru/novost-dnja&eofvqrfqlsht
and the same page. the problem is this, the engine generates canonical tags on these “subpages” of the form:

<link rel="canonical" href="site.ru/novost-dnja&eofvqrfqлщт" />

Instead of indicating that this garbage page is just a copy of the main one. So the canonical should look like this:
<link rel="canonical" href="site.ru/novost-dnja" />

Tell me how to implement it, please.
PS^ is used by Pathauto to create CNC addresses and Global Redirect to redirect pages /node/123 to pages like site.ru/novost-dnja

Answer the question

In order to leave comments, you need to log in

2 answer(s)
@
@mactator, 2013-07-23
@Lici

Install Metatag, it has a separate canonical through tokens. Checked on their sites, there is no such problem.

@
@mactator, 2013-07-23
_

With it, you can confirm a third-party short link code.google.com/p/shortlink/wiki/Specification
And this can happen using a head request to your server, without having to load the entire page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question