The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2

OK, comments are not the easiest place to talk in details (too short, too easy to misinterpret) so I'll post this here. It may be a bit wide-ranging and high-concept at first b/c of the lack of detail I'm starting out with, but bear with me and we can edit out the parts that don't fit the more concrete scenario, as it gets defined, and flesh out the parts ...


1

Looking at how Weblinks works I can see that the only time weblinks.go gets involved is when you have have an option selected to count Hits for each link causing view.html.php to display this style of link: $item->link = JRoute::_('index.php?option=com_weblinks&task=weblink.go&id=' . $item->id); at line 88 of default_items.php I would ...


1

It doesn't look like you are including the menu Itemid in your redirect which is why your URL is changing. Add another hidden field with the value of your current Itemid. Your redirect code is fine just add the &Itemid= portion to include the value that you are passing.


1

The comment from @mickmackusa is essentially correct, but there's some context missing, perhaps, from your question that makes me wonder if you're not asking a wider question. There are wide variety of reasons for the overrides you're seeing. In an MVC world "save" is both a controller and a model method. It stems from the concept "separation of concerns." ...


Only top voted, non community-wiki answers of a minimum length are eligible