add to_absolute function to get the absolute url