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
Now the comparison is 'http://example.com/app' === 'http://example.com/app/' || 'http://example.com/app'.startsWith('http://example.com/app/'), which is false. No Turbo Drive.
The text was updated successfully, but these errors were encountered:
Description
-----------
Reverts #7597 until hotwired/turbo#912 is fixed in Turbo.
Commits
-------
347c3d3 Revert "Add the `turbo-root` meta tag to the back end (see #7597)"
leofeyer
pushed a commit
to contao/core-bundle
that referenced
this issue
Nov 21, 2024
Description
-----------
Reverts #7597 until hotwired/turbo#912 is fixed in Turbo.
Commits
-------
347c3d3e Revert "Add the `turbo-root` meta tag to the back end (see #7597)"
If you configure a Turbo root as follows:
Turbo Drive will handle navigations to URLs within that root (like
/app/foo
), but not navigations to the root itself (/app
).We can see why this happens by following the logic from the
locationIsVisitable
function:locationIsVisitable
is calledlocation = http://example.com/app
rootLocation = http://example.com/app
isPrefixedBy
, which viagetPrefix
, adds a trailing slash to the root URL:'http://example.com/app' === 'http://example.com/app/' || 'http://example.com/app'.startsWith('http://example.com/app/')
, which is false. No Turbo Drive.The text was updated successfully, but these errors were encountered: