Set URL block
Purpose
Redirect the user to an external page. For internal redirection see the 'Set Route' block. Often used for downloads.
Input
-
Execute
Redirects when a true value is provided. -
URL
The URL to redirect to.
Note: Can also be a BASE64 string, if needed to download a local file.
- Target
Determine how the link should open.
Value Description _blank Opens the linked document in a new window or tab _self Opens the linked document in the same frame as it was clicked (this is default) _parent Opens the linked document in the parent frame _top Opens the linked document in the full body of the window framename Opens the linked document in the named iframe See w3schools
- Filename
Only used for downloads. Sets the name of the file.
Example
I want the user to be able to download an image when they press my button. This download should start in a new tab. (OBS use _blank
with an underscore)
graph LR A([link to image]) --URL--> I(Set route) B(['blank']) --Target--> I C(['myImage']) --Filename--> I
Caveats
--none known so far--