Fix invalid edit preview path
(cherry picked from commit eab085504f0a4417df0a39b1b5a047b58a4e069f)