[#32173] Wrong path generation in new template edit screen (Fix #2288)