When calling JRoute, if the user has enabled in Joomla! to add suffix to url, is-there a way to don't add suffix to some urls ?

In some cases using url with suffix for doing ajax request doesn't work, so for this kind of case i need to remove suffix to url.

Do-you have an idea to do it ?

Thanks by advance


Actually you shouldn't use JRoute for ajax functions as said in joomla docs, so just use the system url like: index.php?option=com_component&task=mycontroller.function without JRoute function.

In general, you should only apply this to URLs that users and/or search engines are able to see. For example, there is no need to transform URLs used in redirects that immediately result in other redirects.

Hope this helps

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.