diff --git a/django/views/debug.py b/django/views/debug.py index 10b4d22030..befef21845 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -335,11 +335,7 @@ class ExceptionReporter: Return an absolute URI from variables available in this request. Skip allowed hosts protection, so may return insecure URI. """ - return "{scheme}://{host}{path}".format( - scheme=self.request.scheme, - host=self.request._get_raw_host(), - path=self.request.get_full_path(), - ) + return self.request.get_raw_uri() def get_traceback_data(self): """Return a dictionary containing traceback information."""