Use full destination URLs in intermediate redirects.

This commit is contained in:
Max Goodman
2013-03-19 14:55:37 -07:00
parent 571f8f70f6
commit e1de4097f3

View File

@@ -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")