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