<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LinkPresentation",
  "identifier" : "/documentation/LinkPresentation/LPLinkMetadata/url",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Link Presentation"
    ],
    "preciseIdentifier" : "c:objc(cs)LPLinkMetadata(py)URL"
  },
  "title" : "url"
}
-->

# url

The URL that returned the metadata, taking server-side redirects into
account.

```
var url: URL? { get set }
```

## Discussion

The URL that returns the metadata may differ from the
[`originalURL`](/documentation/LinkPresentation/LPLinkMetadata/originalURL) to which you sent the metadata request. This
can happen if the server redirects the request, for example, when a resource
has moved, or when the original URL is a domain alias.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)