diff --git a/turbo/src/main/assets/js/turbo_bridge.js b/turbo/src/main/assets/js/turbo_bridge.js index c5a89145..62d6450d 100644 --- a/turbo/src/main/assets/js/turbo_bridge.js +++ b/turbo/src/main/assets/js/turbo_bridge.js @@ -92,7 +92,7 @@ // Adapter interface visitProposedToLocation(location, options) { - TurboSession.visitProposedToLocation(location.absoluteURL, JSON.stringify(options)) + TurboSession.visitProposedToLocation(location.toString(), JSON.stringify(options)) } // Turbolinks 5 @@ -101,7 +101,7 @@ } visitStarted(visit) { - TurboSession.visitStarted(visit.identifier, visit.hasCachedSnapshot(), visit.location.absoluteURL) + TurboSession.visitStarted(visit.identifier, visit.hasCachedSnapshot(), visit.location.toString()) this.currentVisit = visit this.issueRequestForVisitWithIdentifier(visit.identifier) this.changeHistoryForVisitWithIdentifier(visit.identifier)