Skip to main content
15h ago

URLs in embedded Rive files

I just want to confirm that I understand this note, from here.

"At this time, by default, Rive will not open URLs when this type of event is reported in share links or community posts due to security considerations. However, this may change in the future"

This includes embedded code generated from here?

I've created a click event that's supposed to open an URL and I'm not sure how to test it.

The embed is here:

https://www.postcardsfromberlin.net/rive-test-02

and the circled object should have a click event, but maybe it's disabled. I'm pretty sure I'm reading the note correctly, but I'd love confirmation.

Thanks

1 reply
10h ago

For security reasons we don’t support Open URL events inside of share links or embedded code. The way to get around this is to use General event and handle the navigation inside your website’s code.

Here’s how to listen for General events: https://rive.app/community/doc/rive-events/docbOnaeffgr#subscribing-to-events

Here’s an example of using a General event with JS to navigate to a URL: https://codesandbox.io/p/sandbox/rive-events-js-wsgcqd?file=%2Fsrc%2Findex.mjs