I have link in my js:
url: '/admin/products/ajax-remove-image/' + $('a.myimg').data('name'),
But after git clone from repositories this link not working because I must use like as:
url: '/public/admin/products/ajax-remove-image/' + $('a.myimg').data('name'),
How to make this dynamic ? I think this one:
url: '{{url('/admin/products/ajax-remove-image/')}}' + $('a.myimg').data('name'),
But this part
$('a.myimg').data('name')
is not going together with main link.
/back in, the one between the path and the$part? What does the code look like in the browser?