Skip to main content

RS Form shows wrong links

The Joomla system for Search Engine Friendly (SEF) links uses routers to convert a query link (index.php?Itemid=301...) into SEF Links.

Each component has its own router. The router for the RSForm! Pro component has a bug.

It assumes that it always runs from the front end (site) application. As this is the most common usage, it works fine for normal sites.

However, when you create links from the administrator or command line application, the RSForm! Pro router uses the wrong application and is unable to find the correct menu items. Either resulting in 404 errors or weird SEF links.

The Broken Link Checker has the option Mitigate RSFrom routing issues in the Issues tab. The Better Front End module also fixes the issue.

This is easily patched in [ROOT]/components/com_rsform/router.php

#Replace Factory::getApplication(); 

#with (three times) : 

Factory::getContainer()->get(\Joomla\CMS\Application\SiteApplication::class);

The whole router.php file