J3 Issue ?
avatar Realnmn
Realnmn
7 Apr 2016

Steps to reproduce the issue

Fill site domain in SEF plugin (without this canonical not write!)
Write to adress some text to request:
site-name/?sdfsfsdfs=

Expected result

<link href="http://site-name/" rel="canonical" />

Actual result

<link href="http://site-name/?sdfsfsdfs=" rel="canonical" />

System information (as much as possible)

Joomla 3.5.1, php 5.4

Additional comments

All work fine at joomla 3.4.8

avatar Realnmn Realnmn - open - 7 Apr 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 7 Apr 2016

Yes, that's a know problem.

Basically, the canonical just repeats the URI you entered but with the other domain you entered.

See https://github.com/joomla/joomla-cms/blob/staging/plugins/system/sef/sef.php#L74

Also you can check some discussion about this here: #9565

avatar Realnmn
Realnmn - comment - 7 Apr 2016

It's not right repeats URI. And it's work correct at joomla 3.4.8.

avatar andrepereiradasilva
andrepereiradasilva - comment - 7 Apr 2016

read the discussion reggarding the wrong canonicals generated before here #9565

avatar Realnmn
Realnmn - comment - 7 Apr 2016

Live check
joomla 3.5.1:
m-sumka.ru and m-sumka.ru/?sfdsdfsdf=
joomla 3.4.8:
autotuning-aks.ru and autotuning-aks.ru/?sdfsdfsdf=

At joomla 3.4.8 on url autotuning-aks.ru/?sdfsdfsdf= we get right canonical:

 <link href="http://autotuning-aks.ru/" rel="canonical" />
avatar SharkyKZ
SharkyKZ - comment - 7 Apr 2016

Autotuning-aks.ru has VirtueMart for homepage which creates its own canonical URL. Try another page on the site.

E.g. no canonical is inserted here http://autotuning-aks.ru/o-kompanii.html?sdfsdfsdf=.
Wrong canonical is inserted here http://autotuning-aks.ru/index.php?option=com_content&view=article&id=5 and here http://autotuning-aks.ru/component/content/article/5
etc.

avatar Realnmn
Realnmn - comment - 7 Apr 2016

All of them use com_content one material on main page. Virtuemart can set canonical only on own pages - category, product, main page of store.

avatar ggppdk
ggppdk - comment - 7 Apr 2016

@Realnmn

There is a problem with current cannonical implementation, under some conditions/configurations (i will open an issue for it or post here) the generated canonical URL is broken giving a 404 error, but that is a different topic
.
.

  • Now about your case:

what you suggest is wrong !!
think what you are you suggesting ...

EXAMPLE 1
you suggest that this URL
http://autotuning-aks.ru/component/content/article.html?id=5

should have this cannonical
http://autotuning-aks.ru/component/content/article.html

  • which is a wrong / bad URL without an article ID and will give 404

EXAMPLE 2
http://domain/search/?seachword=test

should have this cannonical !!
http://domain/search/

  • which of course again wrong
avatar Realnmn
Realnmn - comment - 7 Apr 2016

@ggppdk
I wrote that one thing work not properly in new version
joomla 3.5.1:
m-sumka.ru and m-sumka.ru/?sfdsdfsdf=
joomla 3.4.8:
autotuning-aks.ru and autotuning-aks.ru/?sdfsdfsdf=

I don't think that need cut URI. But need check why in older version work fine.

avatar SharkyKZ
SharkyKZ - comment - 8 Apr 2016

Do you have a canonical domain set in SEF plugin? Because if not, the (Joomla) canonical shouldn't appear in 3.5.1 at all.

avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2016
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2016
avatar infograf768 infograf768 - change - 3 Apr 2017
The description was changed
avatar infograf768 infograf768 - edited - 3 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Apr 2017
Status New Ready to Commit
avatar infograf768 infograf768 - change - 14 Apr 2017
The description was changed
Status Ready to Commit Needs Review
avatar rdeutz rdeutz - change - 13 Nov 2017
Status Needs Review Pending
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman brianteeman - change - 18 Aug 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 10:29:12
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 18 Aug 2018

Sorry I am closing this issue. The canonical option in Joomla is ONLY for the canonical domain and not the url

avatar brianteeman brianteeman - close - 18 Aug 2018

Add a Comment

Login with GitHub to post a comment