---
title: "pendingURL(for:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensiontab/pendingurl(for:)"
---

# pendingURL(for:)

Called when the pending URL of the tab is needed.

## Declaration

```swift
optional func pendingURL(for context: WKWebExtensionContext) -> URL?
```

## Parameters

- `context`: The context in which the web extension is running.

## Discussion

Discussion The pending URL is the URL of a page that is in the process of loading. If there is no pending URL, return nil. Defaults to nil if not implemented.
