How to get datasource original URL in datasource plugins?

Hello, I am writing a datasource plugin using typescript.

I want to have a link to the previous datasource UI. In order to do that, I need to get the original datasource URL first. But I found that I can only get the grafana proxy URL, how to get the original datasource URL?