fix add to front location on member page
This commit is contained in:
@@ -231,6 +231,8 @@ def add_to_front(mid,location):
|
||||
|
||||
if location == "home":
|
||||
return redirect(url_for('index'))
|
||||
elif location == "mid":
|
||||
return redirect(url_for('home.page', mid=mid))
|
||||
else:
|
||||
return redirect(url_for('home.full_list'))
|
||||
|
||||
@@ -248,6 +250,8 @@ def remove_front(mid, location):
|
||||
|
||||
if location == "home":
|
||||
return redirect(url_for('index'))
|
||||
elif location == "mid":
|
||||
return redirect(url_for('home.page', mid=mid))
|
||||
else:
|
||||
return redirect(url_for('home.full_list'))
|
||||
|
||||
@@ -270,6 +274,8 @@ def add_to_home(mid, location):
|
||||
|
||||
if location == "home":
|
||||
return redirect(url_for('index'))
|
||||
elif location == "mid":
|
||||
return redirect(url_for('home.page', mid=mid))
|
||||
else:
|
||||
return redirect(url_for('home.full_list'))
|
||||
|
||||
@@ -282,6 +288,8 @@ def remove_home(mid,location):
|
||||
|
||||
if location == "home":
|
||||
return redirect(url_for('index'))
|
||||
elif location == "mid":
|
||||
return redirect(url_for('home.page', mid=mid))
|
||||
else:
|
||||
return redirect(url_for('home.full_list'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user