URL action step allow for the creation of custom URL-based actions which add support for web searches and links to websites and other apps not already supported by Drafts. This is an advanced feature, and if you are not comfortable building URLs yourself, please browse the Drafts Action Directory for many ready to import examples.
When adding a URL action step, the following values can be configured:
- URL: The URL to open when the action is fired. Read more about support template tags.
- URL encode tags: If yes, then values returned by Drafts' tags in the URL will automatically be URL encoded. This is the default, and in most cases what you want if you are passing those values as parameters in a URL to another app. If you disable this, you can create raw URLs – for example, an http:// url that will open in Safari – but is up to you to make sure the output is properly URL encoded (either via script, or using {{ }} tags).
- Open in Drafts: Valid only for steps that generate HTTP/HTTPS URLs, when enabled, the resulting URL will be opened using Safari View Controller in Drafts. This is particularly useful for actions which search the web for selected text, for example.
IMPORTANT NOTES:
- URL action steps a little different than most action steps, in that they result in leaving Drafts. Because of this, actions can only contain a single URL action step and it must be the last step in the action. Once Drafts is exited, there is no guarantee iOS will allow Drafts to keep running and complete other steps, so this is required.
- The output of tags used in URL action steps will automatically be URL encoded.
Comments
0 comments
Please sign in to leave a comment.