File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
turbo/src/main/kotlin/dev/hotwire/turbo/session Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -668,8 +668,8 @@ class TurboSession internal constructor(
668
668
reset()
669
669
}
670
670
671
- val willProposeThrottledVisit = shouldProposeThrottledVisit()
672
- if (shouldOverride && willProposeThrottledVisit ) {
671
+ val willProposeVisit = isColdBootRedirect || shouldProposeThrottledVisit()
672
+ if (shouldOverride && willProposeVisit ) {
673
673
// Replace the cold boot destination on a redirect
674
674
// since the original url isn't visitable.
675
675
val options = when (isColdBootRedirect) {
@@ -683,7 +683,8 @@ class TurboSession internal constructor(
683
683
" shouldOverrideUrlLoading" ,
684
684
" location" to location,
685
685
" shouldOverride" to shouldOverride,
686
- " willProposeThrottledVisit" to willProposeThrottledVisit
686
+ " isColdBootRedirect" to isColdBootRedirect,
687
+ " willProposeVisit" to willProposeVisit
687
688
)
688
689
689
690
return shouldOverride
You can’t perform that action at this time.
0 commit comments