2du 5 лет назад
Родитель
Сommit
490a238525
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      route/tool/func.py

+ 1 - 1
route/tool/func.py

@@ -1236,7 +1236,7 @@ def edit_filter_do(data):
     return 0
 
 def redirect(data = '/'):
-    return flask.redirect(flask.request.host_url + data)
+    return flask.redirect(flask.request.host_url[:-1] + data)
     
 def get_acl_list(type_d = 'normal'):
     if type_d == 'user':