I am using request.META.get('HTTP_REFERER')
to get the referrer page from where current request is made. This function work fine when I am using HttpResponse to render UI. But, if there is an Ajax call which returns JsonResponse to the page, then request.META.get('HTTP_REFERER')
return None
.
Please guide me to solve this problem. Thanks