Add low level function to extract canonical URL from full URL