fixed a bug with wrong edit-off url redirect after publishing