mirror of
https://github.com/simple-login/app.git
synced 2024-11-17 22:21:38 +08:00
keep sort param when redirecting back to index
This commit is contained in:
parent
a2666cc4fe
commit
ee7e783f2a
1 changed files with 10 additions and 2 deletions
|
@ -57,7 +57,10 @@ def index():
|
||||||
|
|
||||||
return redirect(
|
return redirect(
|
||||||
url_for(
|
url_for(
|
||||||
"dashboard.index", highlight_alias_id=alias.id, query=query,
|
"dashboard.index",
|
||||||
|
highlight_alias_id=alias.id,
|
||||||
|
query=query,
|
||||||
|
sort=sort,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
@ -69,7 +72,12 @@ def index():
|
||||||
if not alias:
|
if not alias:
|
||||||
flash("Unknown error, sorry for the inconvenience", "error")
|
flash("Unknown error, sorry for the inconvenience", "error")
|
||||||
return redirect(
|
return redirect(
|
||||||
url_for("dashboard.index", highlight_alias_id=alias.id, query=query)
|
url_for(
|
||||||
|
"dashboard.index",
|
||||||
|
highlight_alias_id=alias.id,
|
||||||
|
query=query,
|
||||||
|
sort=sort,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
LOG.d("delete gen email %s", alias)
|
LOG.d("delete gen email %s", alias)
|
||||||
|
|
Loading…
Reference in a new issue