Returns the last path segment or the filename query parameter
if a string input is not a valid absolute URL
Returns the last path segment or the filename query parameter