Fix path rule generation for Topic and Static Page