Item in two different categories and canonical

More
10 years 2 weeks ago #46442 by ggppdk
Hello

thanks for feedback !

this was asked by a couple of other users too, and indeed we think it is indeed not proper choice to have 1 rel canonical per item category,

this will be the default for v2.2.0


to Rooney: do by any chance left both old and new code?

please send me a PM with admin login


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 2 weeks ago #46459 by Rooney
Update: I have sent you a PM.

ggppdk wrote: to Rooney: do by any chance left both old and new code?
please send me a PM with admin login

I am going to send you the information. The code looks like:
Code:
$uri = JFactory::getURI(); $base = $uri->getScheme() . '://' . $uri->getHost(); $ucanonical = $base . JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $globalcats[$item->maincatid]->slug)); if ($params->get('add_canonical')) { $document->addHeadLink( $ucanonical, 'canonical', 'rel', '' ); }

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
10 years 2 weeks ago #46554 by Rooney
Have you had a chance to look into this?
Best regards
Rooney

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
10 years 2 weeks ago #46555 by ggppdk
Hello Rooney

i will look at it today,

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #46867 by Rooney
Hi,
have you had a chance to look into this? Still getting two canonical links in page meta data header (r1901).
Rooney

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #46870 by ggppdk
Hello

yes, in Joomla 3.x the Joomla SEF plugin is adding a rel canonical, according to the current URL retrieved from JRouter

thinking of best practice for dealing with this

will check what other extensions did

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.279 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline