activate the Language Filter Plugin go the administrator and get any article id
no in the front end of the site try to but www.yadordomain.com/[anyrandom word]/[article id]
return 404 error
load the article in the home page
Database Version 5.5.46-cll
Database Collation latin1_swedish_ci
PHP Version 5.4.44
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.4.6 Stable [ Ember ] 15-December-2015 11:11 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
if you stop the Language Filter Plugin this will work as expected and return 404 error
sure this will generate unlimited pages with same title and meta information and this will kill the site on google
This is unrelated to the use or not of the language filter plugin.
Please correct the title of this issue
what the best title should i but here
and i don't know why but if i stop the plugin the page no longer open it's return 404 error
Title |
|
Title |
|
his will kill the site on google
Actually, Google doesn't care about same content with multiple URLs (duplicate content) as long as it is on the same domain. Especially if the canonical URL is set properly (which is an area in Joomla that needs improvement afaik).
Duplicate content is only a big issue if it's on different domains.
Keep also in mind that even if multiple (or random) URLs are accepted as valid and return the article, it isn't automatically duplicate content for Google. Google doesn't try randomly URLs, it follows the existing ones. Thus as long as the URLs on your page are all the same, Google will have no issue at all.
If Google tells you there are multiple URLs for the same page, then you should first figure out where those are generated. Maybe there is the real issue to fix.
it's not just about google also the site will look missed up when the article show in home page and many seo report that i have until now tell me that there is a problem with the duplicated content and all of them look like the situation i'm talking about (the are not linked from any other page)
The ONLY way that an SEO report could find the url is if you are linking to it
so there is no way to solve this issue ??!!
Not with the way the current router works. There is a new router in progress, but I'm not sure if it takes care of this. And I'm not even sure if it should. I don't have an issue if Joomla can figure out a valid article from an URL, as long as the generated URL for that article is always the same (and thus the canonical one).
so there is no way to solve this issue ??!!
i do not understand
how can this be called an "important" issue, if there is no page that generates these URLs ?
also a similar case but not same case, is the id:alias or id-alias in URLs, you can change the alias part and the URLs are still valid, not only this is not a bug, but it prevents old URLs from becoming invalid if alias is changed
about the described behaviour it is not difficult to invalidate the URL, (but i do not think it is needed to do)
copying from the parse() function of the router file of com_content component:
/components/com_content/router.php
/*
* If there was more than one segment, then we can determine where the URL points to
* because the first segment will have the target category id prepended to it. If the
* last segment has a number prepended, it is an article, otherwise, it is a category.
*/
if (!$advanced)
{
$cat_id = (int) $segments[0];
$article_id = (int) $segments[$count - 1];
if ($article_id > 0)
{
$vars['view'] = 'article';
$vars['catid'] = $cat_id;
$vars['id'] = $article_id;
}
else
{
$vars['view'] = 'category';
$vars['id'] = $cat_id;
}
return $vars;
}
THE IF part runs and the returns ...
$cat_id = (int) $segments[0];
$article_id = (int) $segments[$count - 1];
if ($article_id > 0)
{
$vars['view'] = 'article';
$vars['catid'] = $cat_id;
$vars['id'] = $article_id;
}
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-05-08 22:43:29 |
Closed_By | ⇒ | brianteeman |
Closed as there has been no response to the last questions. This can always be reopened if updated
My testing shows:
www.mysite.de/component/content/article/40
www.mysite.de/foo/40
www.mysite.de/bar/40
will all display article id=40
This behavior is NOT new in 3.4.6 It is also in 3.4.5
This behavior is NOT related to language filter plugin (I have it turned OFF)
Apparently, I have SEF enabled.
This behavior is NOT what it should be, I guess...
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8744.