DTR that changes links as well?

So I’ve managed to figure out how to work with Dynamic Text Replacement. But can anyone help me changed the DTR link as well?

Text changes based on parameter but the link remains the same.