Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Having problems with open-url (Twine 2.0.11, Harlowe 1.2.2)

$
0
0
Hello there! I am getting some unexpected behavior from the (open-url:) macro in Harlowe. I’m using the standalone Twine 2.0 editor, and I’m getting the same behavior in the built-in webkit browser, in Firefox, and in Chrome.

Here's a sample of the kind of code that is acting up:
(link: "Psalm 29")[(goto-url: ""https://www.biblegateway.com/passage/?search=Psalm+9&version=CEB")]

When the link is clicked, the URL indeed opens in a new tab/window, just as expected. However, the link text disappears and “[object Window]” appears.

If I change (link:) to (link-reveal:), the words “Psalm 29” become plain text (as expected with (link-reveal:)) but “[object Window]” appears immediately thereafter, so the result is “Psalm 29[object Window].”

I’ve been working on this story for quite some time and I don’t remember seeing this behavior previously. I certainly never noticed the “[object Window]” before. Advice?

Viewing all articles
Browse latest Browse all 1844

Trending Articles