Get current URL

Hello everyone I wanted to know something simple hopefully. I wanted to know how what script and how to put it to get the current url. I am placing this on a product template so I am not sure how to do it. Any help would be greatly appreciate.

I found it {$config.current_url|fn_url} for those who need this too.