Change category and tt creation to take URL into account