?
avatar tonypartridge
tonypartridge
13 Jun 2017

Steps to reproduce the issue

Setup your Joomla! Install with the first 3 SEF options set to yes. We now have .html on the ending of every URL great.

Expected result

.html and SEF urls to work and redirect all non-SEF and non .html urls to the .html urls

Actual result

Joomla! Allows .html and non .html causing duplicate content since the URL is multi accessible.

avatar tonypartridge tonypartridge - open - 13 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 13 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Jun 2017
avatar Bakual
Bakual - comment - 13 Jun 2017

It's true that we currently don't enforce the SEF settings when parsing the URLs. That's not only the case for the suffixes, you also can always access a page using non-SEF URLs.
I honestly don't know if that will change with the new routing. If it does, it will likely just generate a 404. You will not get a redirect because the URL technically is invalid.

But then, it's not a real issue. While you get multiple URLs pointing to the same page, contrary to popular believe Google does not consider that a duplicate content.
Also, links generated will always have the suffix, and that is what Google indexes.

avatar tonypartridge
tonypartridge - comment - 13 Jun 2017

The problem we have seen is google is listing the pages under both accessible urls, thus duplicate URLS and accessing in Google. We had the same with the http to https move, google indexes both separately.

Really it should be a 404. At the moment, we can handle it with htaccess redirects. But for end users this is not at all practical.

avatar Bakual
Bakual - comment - 13 Jun 2017

If Google finds them, then the question is more where the links are coming from.
Sure, Google will index both, but afaik it will detect them as the same page and only list one in the search result. Ideally we would always add a proper canonical tag, so Google knows which one is the "right" URL. That's what Google suggest themself.

Generating 404 imho is the worst choice, since it leaves users following those links on an error page. That's not going to bring you good conversion rates ?

avatar tonypartridge
tonypartridge - comment - 13 Jun 2017

Well, prime example. Migrated a client from an old wordpress site to Joomla! Google has their urls and we matched them but using the suffix. Joomla! allows both. so we redirect, yes we could just set to no suffix, but that's not the point here.

Google indexes our new sitemap, still has the old links. People linking still have the old links.

Generating a 404 is better as you can use com_redirects to redirect them then, which is intuitive. Whereas ways to access content you have no way of knowing easily how they access the page.

It was listing both for us.

avatar brianteeman
brianteeman - comment - 13 Jun 2017

In that use case you should not have added the suffix :)

avatar tonypartridge
tonypartridge - comment - 13 Jun 2017

I didn't build it, it's how the builders did it. But it's what they always and have.

Regardless, this is off topic. The end point is, we shouldn't allow multiple URLS to access a single page, if suffix is enabled and it is a valid menu item we should add the suffix on 301 redirect.

avatar brianteeman
brianteeman - comment - 13 Jun 2017

agree that that would be the desired approach

avatar mbabker
mbabker - comment - 13 Jun 2017

There is already an open issue for this in the 4.0 projects if someone wants to tackle it. It won't be a fix made in 3.x.

avatar tonypartridge
tonypartridge - comment - 13 Jun 2017

And you didn't even link to it! ? Cool will check out the issue

avatar mbabker
mbabker - comment - 13 Jun 2017

There's only so much I can do on a cell phone. I know the issue is there but searching for it isn't easy on the mobile interface.

avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Jun 2017
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Jun 2017
Category Router / SEF
avatar brianteeman
brianteeman - comment - 16 Aug 2017

Found the other issue #15025 so closing this one


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

avatar brianteeman brianteeman - change - 16 Aug 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-08-16 21:16:20
Closed_By brianteeman
avatar brianteeman brianteeman - close - 16 Aug 2017

Add a Comment

Login with GitHub to post a comment