? 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 (integer value).
/components/com_content/helpers/route.php
public static function getArticleRoute($id, $catid = 0, $language = 0)

See more #4371 and #5276

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

@shur Hi! I see what you did and seems to be correct, but, to make tester's life easier, can you add instructions on how to test your PR (affected views and behavior without/with your PR applied)?

Same goes for #5426 and #5427...

Thanks! Sergio

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 blog links items
    (Menu -> Category Blog Item -> Blog layout -> Links ):

    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 smz
smz - comment - 14 Dec 2014

@shur Thanks, perfect! Will test...

avatar smz
smz - comment - 14 Dec 2014

@shur I can't replicate your behavior, but keep in mind that I'm testing in a multilingual environment.

Here, all the links I see in the "Category Blog" page with address:

/index.php?option=com_content&view=category&layout=blog&id=9&Itemid=106&lang=en

have URLs of this kind:

/index.php?option=com_content&view=article&id=2:english-in-english&catid=9&lang=en&Itemid=106

without the category alias.

This is true independently form the fact that the article title appears as a 'Leading Article', *Intro Article* or 'Link`

When you talk about 'Menu -> Category Blog Item -> Blog layout -> Links' you mean the articles links that in the Blog page appear after 'Leading Articles' and*Intro Articles*, right? Or am I missing something...

avatar shur
shur - comment - 15 Dec 2014

@smz

When you talk about 'Menu -> Category Blog Item -> Blog layout -> Links' you mean the articles links that in the Blog page appear after Leading Articles and Intro Articles, right? Or am I missing something...

Yes, exactly.
BUT there is one important moment. Your site template can use overrides for Blog Layout with it's own behavior for article links creation. For test I recommend to use Protostar template which doesn't have overrides for com_content layouts.

avatar brianteeman brianteeman - change - 15 Dec 2014
Category SEF
avatar smz
smz - comment - 15 Dec 2014

@shur Yes, I'm testing with a fresh Joomla! install from the 'staging' code using the Protostar template.

I think I know what's happening here: the file you edited for this PR is the one used by the JLayouts interface, /layouts/joomla/content/blog_style_default_links.php, and the "Category Blog" view doesn't use it. The file used is /components/com_content/views/category/tmpl/blog_links.php where we don't have the catslug but just the catid.

I'm wondering how you can see the catslug in this view!! :smile:

Your edit seems anyway correct: only problem is that we don't know if and where this layout is used.

My feeling is that it is not used at this time, but I may be wrong and probably the person who can say the definitive word on this is @phproberto, JLayouts father.

avatar shur
shur - comment - 15 Dec 2014

I was sure that this layout was used for links position in category block page, but found out that it's not true. It turns out that this layout is never used for anything in Joomla, yet there is probability that is used by third party extensions.

However it still has a mistake, and this PR fixes it.

avatar smz
smz - comment - 15 Dec 2014

@shur I agree, and basing on "code review" (testing not possible) I'm giving this PR my @test success.

avatar smz smz - test_item - 15 Dec 2014 - Tested successfully
avatar Hackwar
Hackwar - comment - 15 Dec 2014

Successfull test. Setting to RTC

avatar Hackwar Hackwar - test_item - 15 Dec 2014 - Tested successfully
avatar Hackwar Hackwar - change - 15 Dec 2014
Status Pending Ready to Commit
avatar brianteeman brianteeman - change - 15 Dec 2014
Labels Added: ?
avatar zero-24 zero-24 - close - 17 Dec 2014
avatar wilsonge wilsonge - change - 17 Dec 2014
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2014-12-17 13:16:57
avatar wilsonge wilsonge - close - 17 Dec 2014
avatar wilsonge
wilsonge - comment - 17 Dec 2014

Merged! Thanks!

avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment