How to get the url to tag & category base set by the user?

I’m searching for half an hour now on how to get the url/permalink base in WordPress (the ‘category’ and ‘tag’ value set in the backend). Could you please point me in the right direction?

I want to dynamically print the following – but only replace the tags and category part (not the tag/category itself):

<a href="/tags/my-tag">My Tag</a>
<a href="/category/my-category">My Category</a>

Solutions Collecting From Web of "How to get the url to tag & category base set by the user?"