Redirects#
Demo#
Explanation#
As part of SSE updates you may want to redirect the user to a different page. The datastar-execute-script
event can be used to execute JavaScript on the client.
event: datastar-execute-script
data: script window.location = "/essays/grugs_around_fire"