Handle post permalink while migrating