autocomplete Ajax URL includes sub-menu path, generates 404

jcc

Member
Fabrik 4.3.1, Joomla 4.4.8
SEF=Yes
Use URL Rewriting=Yes
Add Suffix to URL=No

I reviewed the handful of forum threads that I thought were relevant, but did not find anything that was helpful or not already included in the 4.3.1 release.

I have an add form that is accessed through a sub-menu that includes an autocomplete databasejoin field. The URL to the form via the menu is:


Entering a value into the autocomplete generates an Ajax call using a URL (like below) that results in a 404:


Manually submitting any of the following URLs in a separate browser tab successfully returns json results:


If I manually access the form using the URL then the autocomplete generates an Ajax call using a URL (like below) which succeeds:


If I turn off SEF & URL rewrite, the autocomplete works correctly.

I am also able to make it work by relocating the menu option to the top-level of a hidden menu and creating a menu item alias from the current unhidden sub-menu location. This will likely be the work-around that I use for the short term.
 
The add-form submenu is a standard fabrik form menu (so opening just a new form)?
Or do you use the rowid=-1/ usekey feature?
 
The add-form submenu is a standard fabrik form menu (so opening just a new form)?
Or do you use the rowid=-1/ usekey feature?
add-form is just a standard Fabrik form menu option to add a new row; I do not have the Row id option set. I tried with setting Row id=0, but it still failed with the same URL and 404.
 
I'm pretty sure this is related to a similar issue I had. I posted my "workarounds" here. To save you from reading through the thread, I opted to use URL Rewriting to fix the issue. I had also found that modifying the form.js file worked, but wouldn't recommend using that solution...
 
Back
Top