Bug 52511: Make editor load correct page for ajax loaded pages

Change-Id: Ib65eb968172dc6eef7fc62a2a2c54e2c9fc24009
Merge "Bug 52511: Make editor load correct page for ajax loaded pages"