Added a small function to get the current URL

Was very helpful in my latest projects