Commit 6620127
committed
Fix unwanted redirect from search index to edit on login error
The search action saves searches including:
@template=index|search
The code strips:
@template=index
but not the error condition template.
So when an non-logged in user uses a search with
@template=index|search and fails to log in, their displayed page is
the search edit page (template search) not the search display (template
index).
This change strips both forms when saving. I don't know if this needs
to be generalized to strip additional templates. But it solves te
orignal issue with search displays jumping to edit mode on login
failure.1 parent b754018 commit 6620127
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
0 commit comments