From 5ce8e3bad52f0a1a4b2bfb121495b0b3504a31ac Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 9 Feb 2011 12:44:44 +0100 Subject: absolute url in goto --- src/meetingtools/apps/room/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index 7bdffc0..b610bb8 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -18,6 +18,7 @@ from meetingtools.utils import session import time from meetingtools.settings import GRACE from django.utils.datetime_safe import datetime +from django.http import HttpResponseRedirect def _acc_for_user(user): (local,domain) = user.username.split('@') @@ -249,5 +250,5 @@ def goto(request,room): r = client.request('sco-info',{'sco-id':room.sco_id}) urlpath = r.et.findtext('.//sco/url-path') - return redirect_to(room.acc.url+urlpath) + return HttpResponseRedirect(room.acc.url+urlpath) #in this case we want the absolute URL \ No newline at end of file -- cgit v1.1