Hi there. I’m trying to get familair with Turbo and am running into an issue. Maybe someone can help me with this.
When I navigate using a normal link (outside a turbo-frame), a Turbo visit is performed. The content is loaded via turbo and the browser history and url are updated.
When I navigate using a normal link, inside a turbo frame, a Turbo visit is performed, but the browser history and url are not updated. I have the following setup and use the link in the second turbo-frame (box2).
<turbo-frame id="main-container"> <turbo-frame id="box1"> <!-- content here --> </turbo-frame> <turbo-frame id="box2"> <a href="/orders/12345">Load new data in main-container using Turbo</a> </turbo-frame> </turbo-frame>
With adding target="_top" a full reload will be initiated and that’s not what I want. With data-turbo-frame=“main-container” the browers history is still not updated.