From 19c76f7842c587a5e1bb03a8ad6620f21c7cbab4 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 27 Feb 2021 22:44:38 +1100 Subject: [PATCH] Include 404 URL in response --- InvenTree/InvenTree/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/api.py b/InvenTree/InvenTree/api.py index fa8a6739b7..3489056865 100644 --- a/InvenTree/InvenTree/api.py +++ b/InvenTree/InvenTree/api.py @@ -58,7 +58,8 @@ class NotFoundView(AjaxView): def get(self, request, *args, **kwargs): data = { - 'details': _('API endpoint not found') + 'details': _('API endpoint not found'), + 'url': request.build_absolute_uri(), } return JsonResponse(data, status=404)