use spring boot and thymeleaf 3.
I have a fragment who have a form. There is a select when a value is choose, a change event is done and via ajax a fragment is loaded.
In fragment loaded by ajax, I have
$("#form").submit(function (e){
$.ajax({
type:"post",
url: /*[[@{${url} }]]*/,
data: $("#productsForm").serialize(),
success: function(data){
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
}
});
}
url come from spring mvc controller
url browser is:
http://localhost:8080/menu/configurationsAt the run time url value is template/edit/products/1
but when it submited, i get 404 error about
http://localhost:8080/menu/template/edit/products/1why menu is added?
maybe because is nested with inline?