1

I want to trigger a get request cycle without change in browser history. I have tried

Turbo.visit(url, { action: "advance" });
Turbo.visit(url, { action: "replace" });

But both change history.

2 Answers2

0

You can use the action option with visit to trigger a get request cycle without changing browser history. visit(url, { action "advance" }) visit(url, { action "replace" })

manibi101
  • 57
  • 1
0

You should be able to do the following:

Turbo.visit(url, { historyChanged: true });

This takes into account that the history was already changed and it will skip the step of updating the browser history.

lytl-k
  • 1