mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 16:41:56 +00:00
跳转回调链接修改为相对路径
This commit is contained in:
parent
4a45ddb9e9
commit
257778d045
@ -32,7 +32,7 @@ def check_user_contest_permission(func):
|
||||
if request.is_ajax():
|
||||
return error_response(u"请先登录")
|
||||
else:
|
||||
return HttpResponseRedirect("/login/?__from=" + urllib.quote(request.build_absolute_uri()))
|
||||
return HttpResponseRedirect("/login/?__from=" + urllib.quote(request.path))
|
||||
|
||||
# kwargs 就包含了 url 里面的参数
|
||||
if "contest_id" in kwargs:
|
||||
|
Loading…
Reference in New Issue
Block a user