pub fn location_of_link(link: &str) -> Option<String>Expand description
The location a link stands for, or None if link is not one: no scheme, or nothing after
it.
| link | location |
|---|---|
https://example.com/orders/42?tab=items | /orders/42?tab=items |
https://example.com | / |
myapp://orders/42 | /orders/42 |
myapp:orders/42 | /orders/42 |
myapp:///orders/42 | /orders/42 |
A fragment is dropped: an application’s locations have none.