get_category_link returning page URL

I changed get_category_link to:

esc_attr(get_term_link($category, 'servicecats'))

Thanks to this site

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)