The parent-url() function

This function evaluates the parent URL of an URL received as string.

parent-url(url); 
 url;
url

The url as string.