?
avatar philip-sorokin
philip-sorokin
2 Mar 2017

Steps to reproduce the issue

Download and install Joomla! 3.7 beta 3 with "Learning Joomla!" demo pages.
Enable modern routing with removing ID option.
Execute somewhere, e.g. in template view, the following code:

$route = ContentHelperRoute::getArticleRoute(8);
$sef = JRoute::_($route);

echo $sef;

Expected result

It must return the following URL:
/using-joomla/extensions/components/content-component/article-category-list/beginners.html

Actual result

Instead, it returns a URL with ID:
/using-joomla/extensions/components/content-component/article-category-list/8-beginners.html

Additional comments

Sorry if I misunderstood the new routing system, but for me it looks strange.

avatar philip-sorokin philip-sorokin - open - 2 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - change - 2 Mar 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Mar 2017
avatar philip-sorokin philip-sorokin - edited - 2 Mar 2017
avatar philip-sorokin philip-sorokin - change - 2 Mar 2017
The description was changed
avatar philip-sorokin philip-sorokin - edited - 2 Mar 2017
avatar zero-24
zero-24 - comment - 2 Mar 2017

Where did you enable that option? com_content? Can you try to change that code in com_content?

avatar philip-sorokin
philip-sorokin - comment - 2 Mar 2017

Is there another place, where I can enable this option?

routing

avatar zero-24
zero-24 - comment - 3 Mar 2017

Yes you can do this per component but you need to enable this for e.g. com_newsfeeds again etc. and there is no general switch just a per component switch ;)

For com_content this is the right place to enable this :)

avatar Hackwar
Hackwar - comment - 4 Mar 2017

This should be fixed in #14322. Please test.

avatar zero-24 zero-24 - change - 4 Mar 2017
The description was changed
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-03-04 10:30:56
Closed_By zero-24
avatar zero-24 zero-24 - close - 4 Mar 2017

Add a Comment

Login with GitHub to post a comment