?
avatar kainhofer
kainhofer
12 Apr 2015

Steps to reproduce the issue

  • Create an article (say with ID 41)
  • Access it via http://localhost/component/content/article.html?id=41 (*)
  • Look at the source code of that page. The canonical link will have lost the article ID:

    <link href="http://localhost/component/content/article.html?id=article" rel="canonical" />

(*) (These URLs are created as canonical links when you call the page via http://localhost/component/content/article/41, see issue 6069

Expected result

The canonical should retain the article id 41 rather than replacing it by "article". Ideally, the canonical would be

<link href="http://localhost/component/content/article/41" rel="canonical" />

but even the originally called URL would be okay:

<link href="http://localhost/component/content/article.html?id=41" rel="canonical" />

Actual result

The article ID is completely lost in the canonical link and replaced by the string "article"

<link href="http://localhost/component/content/article.html?id=article" rel="canonical" />

System information (as much as possible)

Joomla 3.4.1 (from the released package), PHP 5.5.12 installed from stock Ubuntu packages
SEF enabled

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
3.00

avatar kainhofer kainhofer - open - 12 Apr 2015
avatar joomla-cms-bot joomla-cms-bot - change - 12 Apr 2015
Labels Added: ?
avatar bertmert
bertmert - comment - 12 Apr 2015

Confirmed also with current staging Joomla

avatar zero-24 zero-24 - change - 12 Apr 2015
Labels Added: ?
Removed: ?
avatar zero-24 zero-24 - change - 13 Apr 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 13 Apr 2015
Labels Removed: ?
avatar franzpeter
franzpeter - comment - 17 Apr 2015

I can confirm that strange behaviour too. Wrong built canonical with missing id!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6751.

avatar brianteeman brianteeman - change - 23 Apr 2015
Status New Confirmed
avatar joomir
joomir - comment - 16 May 2015

I write a plugin for solving joomla articles diplicate issues. this plugin canonical all duplicate content to original content. http://extensions.joomla.org/extensions/extension/site-management/seo-a-metadata/articles-canonical

avatar franzpeter
franzpeter - comment - 18 May 2015

joomir, OK, but that does not solve the main problem. It should work too without any workaround plugin.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6751.

avatar SEWilco
SEWilco - comment - 27 Jan 2016

Issue still exists. Generic canonical emitted: /component/content/article?id=article


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6751.

avatar rdeutz
rdeutz - comment - 17 Aug 2016

can't reproduce the problem seems fixed, closing, can be opened if the problem still exists.

avatar rdeutz rdeutz - change - 17 Aug 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-08-17 20:31:10
Closed_By rdeutz
avatar rdeutz rdeutz - close - 17 Aug 2016

Add a Comment

Login with GitHub to post a comment