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?