Commit a33a950
committed
Merge branch 'bugfix/move-topic-url' into develop
There has been a long-standing bug in the OnTopic Editor where the URLs of topics in the tree view are broken after being moved. That's because while ExtJS moves the nodes within the tree, it doesn't make any updates to their `path` or `webPath` properties. As such, if they are clicked on, they will still go to their old location, thus yielding a 404 Not Found. This issue is compounded if the user is currently on the topic that was moved, or is a descendant of that topic. In that case, if the user performs an action such as save, it will return a 404 Not Found since it will attempt to post back to the original URL.
These issues are resolved by reloading the tree view after a topic is moved. And if the topic that was moved in the current topic or an ascendant, then the user will be redirected to the new URL, thus ensuring the form and its actions are refreshed.
In many cases, these never caused problems as the user would click to another page after performing a move. But for the scenarios where the above conditions were met, the behavior was unintuitive and frustrating.1 file changed
Lines changed: 14 additions & 0 deletions
File tree
Lines changed: 14 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 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
100 | 114 | | |
101 | 115 | | |
102 | 116 | | |
| |||
0 commit comments