Monkey patch URL function, so that only the first category is used in URLs