Correct html preview path generation