Turbo Router Not Working (?)

I noticed this morning on a website I am working with that the turbo router is not working as expected. So I set up a test and confirmed it is doing a full page refresh.

Layout:

<!DOCTYPE html>
<html>
<head>
    <title>{{ this.page.meta_title | default('Testing') }}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script>
        let count = 0;
        addEventListener('render', function() {            
            console.log("full refresh - " + count);
            count++;
        });
    </script>
</head>
<body>
    {% page %}
</body>
{% framework turbo %}
{% placeholder scripts %}
</html>

Page 1

<h1>Home</h1>
<a href="/test-start">Start</a>

Page 2

<h1>Start</h1>
<a href="/test-home">Home</a>```

Hey @thesigae

Assuming you’re on the latest version, the turbo router is now activated by a meta tag. Try adding this to the page head:

<meta name="turbo-visit-control" content="enable" />

Okay. I didn’t see that in the documents but I may have missed it.

Ah, yes. You’re right, it was missing from the release notes.

We have added a section in there for it today.

Thanks @thesigae !

1 Like