mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 06:31:27 +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(
|
||||
url_for(
|
||||
"dashboard.index", highlight_alias_id=alias.id, query=query,
|
||||
"dashboard.index",
|
||||
highlight_alias_id=alias.id,
|
||||
query=query,
|
||||
sort=sort,
|
||||
)
|
||||
)
|
||||
else:
|
||||
|
@ -69,7 +72,12 @@ def index():
|
|||
if not alias:
|
||||
flash("Unknown error, sorry for the inconvenience", "error")
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue