Commit ab728cd
committed
Set the redirect query param only for GET requests.
Currently if the session expires for a logged in user and they click on a
link for "Delete" action, after login they get redirected to the delete action
with a GET request, resulting in an exception since that action is only accessible
with POST/DELETE request.1 parent 93ef8a1 commit ab728cd
File tree
2 files changed
+23
-1
lines changed- src
- tests/TestCase
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
387 | 386 | | |
388 | 387 | | |
389 | 388 | | |
390 | 389 | | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
394 | 400 | | |
395 | 401 | | |
396 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
850 | 866 | | |
851 | 867 | | |
852 | 868 | | |
| |||
0 commit comments