[Answer]-ObtaI n url of page which fired ajax request in ajax view

1👍

You could use request.META.get('HTTP_REFERER') in the view and extract the info from there.

0👍

You can do that with JS It should be something like this:

var link = [];
var url = window.location.pathname;
link = url.split('/');

var some_id = link[link.length-1];

Leave a comment