Changed document page save redirect logic