Category : url

I’m learning to use webpack Encore I would like to know if it is possible to use the ‘path’ function to call a route via ajax webpack.config.js .setOutputPath (‘public / build /’) .setPublicPath (‘/ build’) .addEntry (‘app’, ‘./assets/js/app.js’) .addEntry (‘ajax’, ‘./assets/js/ajax.js’) I created a second entry which imports all ajax calls ajax.js import ‘bootstrap’; // ..

Read more

I have a project in Symfony 4. Normally everythink works fine, but sometimes when I go to the base URL (ex: https://WEBSITEURL.com ) it automatically goes to https://WEBSITEURL.com/favicon.ico , and every internal link points to https://WEBSITEURL.com/favicon.ico/LINK , which produces 404 error. Other times, instead of favicon.ico, I get other strings like robots.txt. I have no ..

Read more

In Symfony 5, I would like to generate an url partially based on GET paramaters already posted. Let’s assume that the url posted is : user/edit/5?foo=1&bar=1&baz=1&qux=1 I would like to generate in the controller without foo : user/edit/5?bar=1&baz=1&qux=1 First, I remove foo parameter : $request->query->remove(‘foo’); If I didn’t get the user_id in the url as ..

Read more