Extract a pathname string from various location-like objects returned by different router implementations or wrappers.
Extract a pathname string from various location-like objects returned by different router implementations or wrappers.