In search result there will be right URL to "category2" like:
/index.php/component/content/category/1-alias1/2-alias2
or
/index.php/component/content/category/2-alias2
or
/index.php/component/content/category/alias1/2-alias2
or
/index.php/component/content/category/2-alias1/2-alias2
In search result category2 has a wrong URL which gives 404 error
/index.php/component/content/category/2-alias1/alias2
Joomla 3.3.3
PHP 5.4
only if SEF is On
only if search by tag
Status | New | ⇒ | Confirmed |
Easy | No | ⇒ | Yes |
This patch works for me:
--- "components/com_content/router.php"
+++ "components/com_content/router.php"
@@ -171,7 +171,7 @@ class ContentRouter extends JComponentRouterBase
if (!$advanced && count($array))
{
- $array[0] = (int) $catid . ':' . $array[0];
+ $array[count($array)-1] = (int) $catid . ':' . $array[count($array)-1];
}
$segments = array_merge($segments, $array);
@oneumyvakin Please do a PR (Pull Request) with the fix so that we can check it and get it into the core!
Viktor, is there some tutorial how to create PR request to GitHub project from TortoiseGIT? I've tries last day but with no luck.
I use the build-in functionality of PhpStorm to connect with GitHub. In the Docs we have a general description how to do a PR: http://docs.joomla.org/My_first_pull_request_to_Joomla!_on_Github
Hopefully it helps you!
For a small change like this, here's the easiest way by far:
http://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests
Labels |
Added:
?
|
Closed in favor of #4448
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4314.
Status | Confirmed | ⇒ | Closed |
Set to "closed" on behalf of @brianteeman by The JTracker Application at issues.joomla.org/joomla-cms/4314
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-17 00:10:37 |
Labels |
Added:
?
|
I can confirm this issue. Set to "Confirmed"!
PS: The plugin "Search - Tags" has to be activated manually first.
This comment was created with the J!Tracker Application at http://issues.joomla.org/.