Clean up diagnostic code
Apparently catid is needed to custom URLs