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

How to test

  • SEF must be disabled ( Global Configuration -> SEO Settings);
  • Open Features Articles page and see how the article URLs look like in "Leading" or "Intro" sections:
    (Menu -> Featured Articles -> Layout -> Leading or Intro Articles):

    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 Featured "Links" section
    (Menu -> Featured Articles -> Layout -> Links):

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

BUT there is one important moment. Your site template can use overrides for Featured Articles 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.

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 Issue confirmed and solution working.
@test success

Sorry but I think you should edit the test instructions: they mention "Category Blog", while this PR is for "Featured Articles". I'll also consider editing PRs titles to make it clear to which views each of the 3 apply...

IMHO, this PR will also reduce the number of duplicated URLs: without this PR an article previously listed in the "Leading" or "Intro" sections and that at a second time falls into the "Links" section will change its URL, while with this PR applied the URL will remain the same.

avatar smz smz - test_item - 14 Dec 2014 - Tested successfully
avatar shur
shur - comment - 15 Dec 2014

@smz

Sorry but I think you should edit the test instructions: they mention "Category Blog", while this PR is for "Featured Articles". I'll also consider editing PRs titles to make it clear to which views each of the 3 apply..

You're right. Test instruction is updated.

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

Successfull test.

avatar Hackwar Hackwar - test_item - 15 Dec 2014 - Tested successfully
avatar Hackwar Hackwar - change - 15 Dec 2014
Status Pending Ready to Commit
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 featured default_links
Labels Added: ?
avatar zero-24 zero-24 - close - 21 Dec 2014
avatar infograf768 infograf768 - close - 21 Dec 2014
avatar infograf768 infograf768 - change - 21 Dec 2014
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2014-12-21 09:16:02
avatar infograf768
infograf768 - comment - 21 Dec 2014

Changed title to fit and merged. Thanks!

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

Add a Comment

Login with GitHub to post a comment