---
title: absoluteURL
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsurl/absoluteurl
---

# absoluteURL

An absolute URL that refers to the same resource as the receiver. (read-only)

## Declaration

```swift
var absoluteURL: URL? { get }
```

## Discussion

Discussion If the URL is already absolute, this property contains a copy of the receiver. Resolution is performed per RFC 1808.

## See Also

### Accessing the Parts of the URL

- [absoluteString](foundation/nsurl/absolutestring.md)
- [baseURL](foundation/nsurl/baseurl.md)
- [fileSystemRepresentation](foundation/nsurl/filesystemrepresentation.md)
- [fragment](foundation/nsurl/fragment.md)
- [host](foundation/nsurl/host.md)
- [lastPathComponent](foundation/nsurl/lastpathcomponent.md)
- [parameterString](foundation/nsurl/parameterstring.md)
- [password](foundation/nsurl/password.md)
- [path](foundation/nsurl/path.md)
- [pathComponents](foundation/nsurl/pathcomponents.md)
- [pathExtension](foundation/nsurl/pathextension.md)
- [port](foundation/nsurl/port.md)
- [query](foundation/nsurl/query.md)
- [relativePath](foundation/nsurl/relativepath.md)
- [relativeString](foundation/nsurl/relativestring.md)
