? Success

User tests: Successful: Unsuccessful:

avatar shur
shur
14 Dec 2014

There is no need to use catslug in Joomla 3.x because:
1. Core content component doesn't use catslug in article URLs;
2. Process link function - ContentHelperRoute::getArticleRoute - requires only catid.
/components/com_content/helpers/route.php
public static function getArticleRoute($id, $catid = 0, $language = 0)

See more #4371 and #5276

After this PR all URLs to the articles must be identical as in content component.

avatar shur shur - open - 14 Dec 2014
avatar jissues-bot jissues-bot - change - 14 Dec 2014
Labels Added: ?
avatar shur shur - close - 14 Dec 2014
avatar shur
shur - comment - 14 Dec 2014

How to test

  • SEF must be disabled ( Global Configuration -> SEO Settings);
  • Open category blog page and see how the article URLs look like:

    http://test.com/index.php?option=com_content&view=article&id=49:article-alias&catid=12&Itemid=101

  • But the same articles have different URLs in Smart Search Results
    (Article title links on smart search results page):

    http://test.com/index.php?option=com_content&view=article&id=49:article-alias&catid=12:category-alias&Itemid=101

After this PR is applied

Articles URLs in these two places are the same as in com_content component

avatar shur shur - change - 14 Dec 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-12-14 14:35:21
avatar shur shur - close - 14 Dec 2014
avatar shur shur - reopen - 14 Dec 2014
avatar shur shur - change - 14 Dec 2014
Status Closed New
avatar shur shur - reopen - 14 Dec 2014
avatar Hackwar
Hackwar - comment - 14 Dec 2014

We have an issue here: If we apply this PR, or rather this pattern, in this manner, we have a break in backwards compatibility, since the URLs for non-SEF sites will change. Old URLs will still work, but Google will index 2 different URLs for some time. While I would agree with @shur here, that this would be the correct way and while I did it the same way in my latest PR, technically its an issue...

This also applies to #5425 and #5426

avatar smz
smz - comment - 14 Dec 2014

@Hackwar I don't thinks this will be a problem: Google anyways clusters similar URLs with identical content. See: https://support.google.com/webmasters/answer/6080548

(btw, Thomas Hannes, I'm the 'old' smanzi: I've changed GitHub account...)

avatar smz
smz - comment - 14 Dec 2014

@Hackwar Oops... meant to say "Hannes", sorry!!!

avatar smz
smz - comment - 14 Dec 2014

@shur issue confirmed (in multilingual site) and solution working.
@test success

Testers beware: you need to purge and re-index in "Smart Search" for this to have effect.

avatar smz smz - test_item - 14 Dec 2014 - Tested successfully
avatar shur shur - change - 15 Dec 2014
Title
Fixing getArticleRoute() calls
Fixing getArticleRoute() calls in Smart Search Results
avatar Hackwar
Hackwar - comment - 15 Dec 2014

@smz The problem is not what Google does and what it means for your SEO ranking, but what people believe that affects their "SEO", unbeknownst to what that even actually means. The difference and thing in favour for us would be, that people who don't use the SEF URLs most likely give a crap about their URLs anyway and wont notice a change.

avatar brianteeman brianteeman - change - 15 Dec 2014
Category SEF
avatar brianteeman brianteeman - change - 15 Dec 2014
Title
Fixing getArticleRoute() calls in Smart Search Results
Fixing getArticleRoute() calls
avatar smz
smz - comment - 15 Dec 2014

@Hackwar

... people who don't use the SEF URLs most likely give a crap about their URLs anyway and wont notice a change

Exactly! :smile: And as I said in a comment on #5426, this PR will reduce the number of duplicated URLs: right now If an article is demoted from the Leading or Intro positions to the Links position, its URL will change. Not with this PR, and this is the reason why IMHO this PR is a good one, together with #5426. On #5425 there are still some serious doubts.

avatar smz
smz - comment - 15 Dec 2014

My last comment doesn't apply to this PR as this is for "Smart Search", so there is no concept of demotion here, but anyway it will reduce duplicated URLs as we already have a different format in "Category Blog" (see my comment on #5425), will have the same in "Featured Articles" if (as I hope) #5426 will be merged and with this we will have the same in "Smart Search" results.

avatar smz
smz - comment - 15 Dec 2014

@Hackwar Sorry if this is blatantly OT, but, is there a reason (beside URLs B/C) why we maintain the slug in the "article" related part of our URLs? Wouldn't the ID be just enough?

avatar shur
shur - comment - 15 Dec 2014

why we maintain the slug in the "article" related part of our URLs?

Article slug is always used in com_content, unlike catslug which is not. This PR is only about catslug.
So lets keep off discussions about other things not connected to this PR.

I'm waiting this fix accepted for several months already, and irrelevant talks will slow down it again.

avatar smz
smz - comment - 15 Dec 2014

@shur Sorry, I said it was OT...
Personally I think I did the best I could do helping you have your PRs accepted by giving my @test. You now need to find at least a second tester, AFAIK.

Several months? I see your PRs as just published...

avatar shur
shur - comment - 15 Dec 2014

In description you'll find the link to my previous PR on a similar problem posted in September.

@smz I really appreciate you help in testing. I wish there are more people like you here, who can do that so fast and efficient.

avatar smz
smz - comment - 15 Dec 2014

@shur Thanks, appreciated! Wanna help me? Give a look at my PRs (you'll find them as published by @smanzi)! :stuck_out_tongue_winking_eye:

avatar Hackwar
Hackwar - comment - 15 Dec 2014

@smz The whole slug thing is simply a performance thing. It prevents us from looking up the slug for each link separately. So the article slug has a reason to exist. :smile:

@shur Since we have most of our links already using only the catid, we should indeed remove the catslug where possible. So with that, I'm giving this a successfull test.

avatar Hackwar Hackwar - test_item - 15 Dec 2014 - Tested successfully
avatar Hackwar Hackwar - change - 15 Dec 2014
Status New Ready to Commit
avatar shur
shur - comment - 17 Dec 2014

@Hackwar I agree. It's only left to remove catslug from here and from one more place.
This PR is about search results which are visible only for users, so we don't risk anything.

avatar shur
shur - comment - 17 Dec 2014

There are two successful tests already. Anything else is needed to get this PR merged?

avatar infograf768 infograf768 - change - 21 Dec 2014
Title
Fixing getArticleRoute() calls
[fix] Fixing getArticleRoute() calls in finder content plugin
avatar infograf768 infograf768 - close - 21 Dec 2014
avatar infograf768 infograf768 - reference | 9e1a05b - 21 Dec 14
avatar infograf768 infograf768 - merge - 21 Dec 2014
avatar infograf768 infograf768 - close - 21 Dec 2014
avatar infograf768 infograf768 - change - 21 Dec 2014
Title
Fixing getArticleRoute() calls
[fix] Fixing getArticleRoute() calls in finder content plugin
Status Ready to Commit Closed
Closed_Date 2014-12-14 14:35:21 2014-12-21 09:20:16
avatar infograf768
infograf768 - comment - 21 Dec 2014

Merged, thanks!

avatar Bakual Bakual - change - 21 Dec 2014
Milestone Added:
avatar shur shur - head_ref_deleted - 21 Dec 2014

Add a Comment

Login with GitHub to post a comment