fixes #1666 tracks slug changes on edit page and adjusts endpoint

same as to master