added slugs in url with smart regex expressions