You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<turbo-frameid="frame" target="_top"><adata-turbo-frame="_self" href="/test">_self in frame</a><!-- works --></turbo-frame><adata-turbo-frame="_self" href="/test">_self out of frame</a><!-- doesn't work -->
In both cases prefetch sends a turbo frame request with a header Turbo-Frame: _self. In a rails environment this will render turbo_rails/frame layout. When the link is in a frame, everything works. When the link is outside of the frame, the page does a full reload due to mismatching data-turbo-track elements in the head tag.
In both cases prefetch sends a turbo frame request with a header
Turbo-Frame: _self
. In a rails environment this will renderturbo_rails/frame
layout. When the link is in a frame, everything works. When the link is outside of the frame, the page does a full reload due to mismatchingdata-turbo-track
elements in the head tag.Code shows
_self
to be left out:turbo/src/observers/link_prefetch_observer.js
Lines 108 to 119 in ea54ae5
Patch for a possible solution:
The text was updated successfully, but these errors were encountered: