The link to the contact from the article should be identical to the one of the the contact list. --> (/menu-item/child-menu-contactlist/40-john-doe)
The alias is missing in the SEF URL, if a contact is linked in an article. Problem: Search engines count the two different links to the same content as duplicate content.
Joomla 3.5.0
PHP 7.0.4
Apache 2
MySQL 5.5.47
Category | ⇒ | Router / SEF |
Hi @bembelimen,
thanks for your quick answer.
However I am wondering, why the router generates different URLs for the same content in articles (/menu-item/child-menu-contactlist/40
) and in the contact list view (menu-item/child-menu-contactlist/40-john-doe
).
The problem of duplicate content is, that the canonical tag (rel=canonical
) in the HTML also shows the two different values, if I visit the contact page from the different locations. By this we tell Google, that these two URLs contain different information. Google sees, that the content is identical and will rate this as duplicate content: https://support.google.com/webmasters/answer/66359?hl=en
I solved my problem for now, by manually manipulating the link id-parameter in the HTML view of the article from (index.php?[...]id=40[...]
) to (index.php?[...]id=40:john-doe[...]
)
If anyone else has the same "issue". Here's a workaround:
If you use JCE, there are two different ways to link a contact.
index.php?[...]id=40[...]
leads to /menu-item/child-menu-contactlist/40
index.php?[...]id=40:john-doe&catid=10:persons[...]
leads to menu-item/child-menu-contactlist/40-john-doe
I would for now use the search to get the contact alias into the link, but remove the category alias to keep the dependencies on duplicate information as low as possible.
Labels |
Added:
?
|
index.php?option=com_contact&view=contact&id=33:super-admin&catid=4&Itemid=107
Yes
contacts/super-admin
Article-Options: Tab Integration: URL Routing "Modern", Remove IDs from URLs: "Yes"
Joomla! 3.7.0-staging
macOS Sierra, 10.12.3
Firefox 50.1.0
PHP 7.0.4
MySQLi 5.5.53-0
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-04 08:59:48 |
Closed_By | ⇒ | zero-24 |
This is normal behavior, the alias is not part of the SEO URL generation. That means, the alias will not be loaded via the router. Just add it by yourself:
index.php?[...]&id=40-john-doe