I have some javascript files in my Symfonyt2 project that load some reources dynamically from the javascript file.
for example:
$('.records_list').DataTable({
"language": {
"url": "../shared/js/datatables.persian.json"
}
});
the url ../shared/js/datatables.persian.json works in pages with url like /test but in pages with url ike /test2/action it fails.
How can i fix this?
Is there a tool like cssrewrite filter for assetic?
or can I make routes for such urls?
"url": "/shared/js/datatables.persian.json"?