> 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/building-blocks/browser/save-page-url.md).

# Save Page URL

<figure><picture><source srcset="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fgit-blob-ef0ed90bcab80c42a86b96661f03b015dd0f669a%2Fsave-page-url-tile-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fgit-blob-33c1062fe1f329b0ef16176b2b8401c6b869867b%2Fsave-page-url-tile.png?alt=media" alt="Save Page URL block" width="279"></picture><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](https://docs.zerowork.io/building-blocks/browser/open-link.md) block opened in a new tab, that tab is the currently active page.
{% endhint %}

## How To Use It

<figure><picture><source srcset="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fgit-blob-37bc58ce95f55df7321e06a7dd94e5e6ef8d60e4%2Fsave-page-url-settings-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fgit-blob-ecdf825c1ad1d19bcef5ebc3e7a3276eeb9af15f%2Fsave-page-url-settings.png?alt=media" alt="Save Page URL settings" width="555"></picture><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 [Variables](https://docs.zerowork.io/variables/variables.md) and [Tables](https://docs.zerowork.io/tables/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](https://docs.zerowork.io/run-and-manage-taskbots/run-reports-and-logs.md).
* **Inside a loop it writes to the current row.** Placed in a [Start Repeat](https://docs.zerowork.io/building-blocks/logic/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](https://docs.zerowork.io/building-blocks/web-interaction/click-web-element.md) block), you may capture an intermediate address rather than the final one. To prevent this, you can add a [Delay](https://docs.zerowork.io/building-blocks/tools/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.
