File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export class Visit {
9898 const url = new URL ( this . location . toString ( ) , this . location . getOrigin ( ) ) ;
9999 navigate ( url . pathname + url . hash + url . search , {
100100 overwriteLastHistoryEntry : this . action === "replace" ,
101+ pageContext : { _turbolinksVisit : this } ,
101102 } ) . catch ( console . error ) ;
102103 this . progress = 0 ;
103104 this . requestInFlight = true ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const onBeforeRoute = (pageContext: PageContext) => {
88 if ( typeof window !== "undefined" && pageContext . isClientSide ) {
99 const Turbolinks = window . Turbolinks ;
1010
11- let currentVisit = Turbolinks . controller . currentVisit ;
11+ let currentVisit = pageContext . _turbolinksVisit ;
1212
1313 if ( pageContext . isHistoryNavigation ) {
1414 const snapshot = Turbolinks . controller . getCachedSnapshotForLocation (
You can’t perform that action at this time.
0 commit comments