PUGX / PUGXAutoCompleterBundle

Add an autocomplete field to your Symfony forms
GNU Lesser General Public License v3.0
93 stars 38 forks source link

Autocomplete doesn't respect executing environment #45

Closed nzurita closed 6 years ago

nzurita commented 6 years ago

When running app in DEV environment (app_dev.php) the bundle calls search routes without app_dev.php prefix, this leads to some problems, one of them being necessary to delete cache for each modification, also can lead to session problems as (I think) sessions are independent in different environments.

garak commented 6 years ago

That part is up to you. You can easily make the javascript dynamic, using the current URL or retrieving URLs from the DOM

nzurita commented 6 years ago

Ok, you're right, I should have used path function instead of static url