> For the complete documentation index, see [llms.txt](https://docs.zerowork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerowork.io/using-zerowork/using-building-blocks/save-page-url.md).

# Save Page URL

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FKZY1StOTACs1EdME648a%2Fsave_page_url_block.png?alt=media&amp;token=5dcc9278-cd13-4a07-9ab8-a0a1ea65a214" alt="" width="362"><figcaption></figcaption></figure>

The **Save Page URL** block records the address of the browser page your TaskBot is currently working within and stores it in a variable or a table column.

{% hint style="info" %}
This block saves the URL of your TaskBot's **active page**, which isn't always the tab that's currently visible.  For example, if an [Open Link](/using-zerowork/using-building-blocks/open-link.md) block opened in a new tab, that tab is the currently active page.
{% endhint %}

## How To Use It

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FWap5HICjIJKqAj6nsDdn%2Fsave_page_url_settings.png?alt=media&amp;token=148ed78c-fc14-4e08-b6b4-8a1a843ec243" alt=""><figcaption></figcaption></figure>

### Save Current Page URL To

Choose where the URL is stored. The dropdown lists your tables and your variables as storage options. See [Using Variables](/using-zerowork/using-variables.md) and [Using Tables](/using-zerowork/using-tables.md) for more information on each.

## Things To Know

* **You get the final address, which is not necessarily the URL you expect.** This block reads the active page URL at the moment it runs, so redirects, added tracking parameters, and fragments are all included. That makes it a good way to find out where a shortened or redirecting link actually lands.
* **It needs a page to be open.** With no browser running, or no active page, this block fails and logs an error to your TaskBot's [Run Reports](/using-zerowork/using-run-reports.md).
* **Inside a loop it writes to the current row.** Placed in a [Start Repeat](/using-zerowork/using-building-blocks/start-repeat.md) loop, each pass saves the URL against the row being processed, so you can collect an address per row.
* **It reads the URL immediately.** This block doesn't wait for browser navigation to settle. If a page is still redirecting when it runs (for example, when navigating to a URL with a [Click Web Element](/using-zerowork/using-building-blocks/click-web-element.md) block), you may capture an intermediate address rather than the final one. To prevent this, you can add a [Delay](/using-zerowork/using-building-blocks/delay.md) block before this block if you expect an opened page to redirect.

## Block Behavior

* **When a page is open** the block writes that page's current URL to your chosen variable or column and logs the value it saved.
* **When no browser or active page exists** the block fails and logs an error, telling you to load a website first.
* **When used inside a Start Repeat loop** the URL is written to the row currently being processed.
