Commit e6a33fa
committed
Perform redirect on
When the current topic—or any of its ascendents—is moved in the `TreePanel`, the current page's URL will no longer be valid. As a result, if the editor then performs an action on that page, such as saving a change, it will fail since it will attempt to post back to the original URL.
To mitigate this, we now perform a redirect in `movenode()` if the `node` is the `currentTopic` or an ascendent of it. This will put the user on the same topic, but in its new location.movenode()
1 parent 37eb773 commit e6a33fa
1 file changed
Lines changed: 8 additions & 0 deletions
File tree
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
| |||
0 commit comments