fix permalink handling to force uniqueueness and rename on product destroy