Fixed redirect after closing the legacy editor (#1250)