fix add to front location on member page

This commit is contained in:
cube
2026-04-30 12:29:18 +01:00
parent 7e6043891d
commit 6fce468dc0
2 changed files with 9 additions and 1 deletions

View File

@@ -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'))