I have a module on my frontpage with a form with an action that uses the JRoute function to show to which page the module should point, this is in a multilangual site with a menu item pointing to the view for each language.
This is the code for the form action attribute: <?php echo JRoute::_('index.php?option=com_jhotelreservation&view=jhotelreservation') ?>
With sef urls turned of the action is index.php?option=com_jhotelreservation&view=jhotelreservation
Turning on sef urls joomla generates this url "/fr/component/jhotelreservation/?view=jhotelreservation" in the french language and "/nl/component/jhotelreservation/?view=jhotelreservation" for the dutch language
I've added for both the french and dutch languages a menu item pointing to "index.php?option=com_jhotelreservation&view=jhotelreservation"
with sef urls turned on they are: nl/reservatie/reserveren.html (for dutch) and fr/reserver/reservation.html (french). the are also linked to eachother by menu item Association.
The is no router.php file in the component so why does joomla not generate the sef urls from the menu items for the action in the module's form?
Regards
Thomas