My search component is pointing to the wrong URLs. When the user clicks on them, they're redirected to the home page.

For example, the search returns:


When the correct URL is:


This is just an example, there are other variations.

I'm trying to find a way to write the URLs with the article ID on them, something like:


And then using .htaccess to redirect all pages to the same structure.

But this URL isn't returning the correct page.

Is there any way to fix the search component or use the process above to solve the problem?

1 Answer 1


The best practice to avoid any unpredictable urls is to create "Articles - Category List" or "Articles - Category Blog" menu items for all your top level article categories. This way all your articles will inherit the url structure from these menu aliases.

  1. Go to Menus->Add New Menu
  2. Create a Menus say "Articles"
  3. Go to that Menus
  4. Add the menu item for each of the top level category
  • Interesting solution. What do you mean by 'top level category'? Those categories without parent? May 20, 2015 at 10:08
  • Yes, those categories which are having parent as root.
    – Nagarjun
    May 20, 2015 at 10:17
  • Silly. But it worked!! Thank You! May 20, 2015 at 10:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.