There are no canonical links

More
2 weeks 1 day ago #86049 by lipatovroman

Please try to comment line showed by georgios and check it for your case

Didn't help.
I removed the whole foreach code fragment - no canonical links.

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

More
2 weeks 18 hours ago #86050 by micker
Replied by micker on topic There are no canonical links
we will check asap

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
2 weeks 16 hours ago #86052 by lipatovroman

we will check asap

This is what ChatGPT says:
 Where could the problem be?
1. The Language Filter plugin changes the URL

The System - Language Filter plugin adds a language to the URL (e.g. /en/article.html instead of /article.html).
Therefore, if $ucanonical_encoded is generated without language and the current canonical already contains a language - they will not match and unset() will occur.

💥 As a result:

canonical is deleted,
but a new one is not added (if $addRel = false is not reset correctly somewhere outside this fragment or the insertion of canonical is broken further down the code).

I hope this helps.

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

More
2 weeks 11 hours ago #86055 by lipatovroman


So, what next?
I compared file /components/com_flexicontent/classes/helpers/html.php
with same file from master branch - no changes.

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

More
1 week 2 days ago - 1 week 2 days ago #86058 by lipatovroman
Hello. I found a solution, but I'm not sure if it's the right one.We need to check if multilanguage mode is enabled.
If it is enabled - then $ucanonical already contains the domain and this line is not needed:
Code:
// $ucanonical = $domain . $ucanonical;
[/code]

Here's a working solution:
Code:
// Check if the language filter is active $app = \Joomla\CMS\Factory::getApplication(); $langfilter = $app->getLanguageFilter(); // If the language filter is active, do not add the domain as it should already be enabled if (!$langfilter) { // Add scheme, domain, port only if language filter is not active $ucanonical = $domain . $ucanonical; }
If all is well - please commit it.
Last edit: 1 week 2 days ago by lipatovroman.

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

More
2 days 15 hours ago #86065 by micker
Replied by micker on topic There are no canonical links
solved thanks for you return

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.824 seconds
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
Save