Corrected pattern management: trailing slash ignored