So I am developing a component and in the front-end views I have links to articles. However Joomla seems to be corrupting the links whether or not SEF is turned on.
In the component view I have a link
If I enter that link directly in the address bar the page shows, however clicking the link from within my component Joomla has corrupted the url to be "
http://j3.localhost/index.php>id=4" which of course doesn't do anything.
If SEF is turned on and there happens to be a menu entry linking to article 4 as (say "Article4") then for that article Joomla makes the link "
http://j3.localhost/article4" which works, but for any other article which doesn't have a menu entry it doesn't.
There is a menu entry for "Home" which links to the default page at "index.php"
SO my problem is, how to make links to articles from another component (not com_content) work. I have tried putting something in a site/helpers/route.php that parses the link, but it only gets redirected to /mycomponent/article rather than /content/article.
Any clues anyone. (PS my component router.php and helpers/route.php work fine for links to my own component's views. It is the cross linking to com_content that I can't get to work)