From e1de4097f3afaf713d4a9ca24568971643f66097 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Tue, 19 Mar 2013 14:55:37 -0700 Subject: [PATCH] Use full destination URLs in intermediate redirects. --- r2/r2/lib/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/lib/base.py b/r2/r2/lib/base.py index b5bac8c34..7ee4dab14 100644 --- a/r2/r2/lib/base.py +++ b/r2/r2/lib/base.py @@ -178,7 +178,7 @@ class BaseController(WSGIController): and added as the "dest" parameter of the new url. """ from r2.lib.template_helpers import add_sr - params = dict(dest = cls.format_output_url(request.fullpath)) + params = dict(dest=cls.format_output_url(request.url)) if c.extension == "widget" and request.GET.get("callback"): params['callback'] = request.GET.get("callback")