Browser action
Current URL Block
Current URL reads the URL from the active page and stores it under the configured output variable name.
At a glance
Best for
Capturing page state
Required setting
Output variable
Output
Current URL string
Error handle
Yes
What it does
Current URL gives later Blocks the exact page URL after navigation, clicking, redirects, or history changes.
Use it when the URL itself is part of the data you want to save or pass onward.
Use it when
- Store a redirected URL after Go To URL.
- Capture the current detail-page link before saving a row.
- Pass the current URL into a Template, HTTP Request, or file output.
Do not use it when
- You already have the URL from a previous variable.
- You need visible page text; use Extract Text.
- No browser page is open yet.
Settings
Current URL requires an output variable name.
Output variable
Required: Yes- Variables
- Variable name
- Description
- Variable that receives the current page URL string.
Outputs
Current URL saves a string variable.
{{outputVariableName}}stringThe current page URL from the active browser tab.
Example Flow
Current URL is useful after a navigation or click changes the browser location.
- Open or interact with a page.
- Run Current URL.
- Use the saved URL in a later output or template.
Errors and fixes
Start with symptoms visible in the editor or Inspector, then check the earliest Block that produced the wrong page state, variable, or output.
The Block fails validation.
- Check
- Check whether the output variable name is empty.
- Fix
- Enter a variable name such as currentUrl.
The saved URL is not the expected page.
- Check
- Inspect the previous navigation or click step.
- Fix
- Add a Wait For Element or move Current URL after the page state changes.
Local and cloud runs
Local and cloud runtimes both require an active page and return the page URL as a string.