Fix/4.0.x/wiki 637

Problem analysis:
- Not saving session properly after moving page causes not able to get path of destination page
Solution:
- Saving session before getting path of destination page