Hence my question, is Turbolinks.visit intended to be only used with absolute urls?
If so, the readme could be updated: there are some Turbolinks.visit usage examples with relative urls.
After some digging, it seems that this line (crossOrigin function in ComponentUrl) is the issue:
On Chrome, @origin returns correctly http://...
On IE11, it returns // -> the crossOrigin function will return false -> a full replacement will be done.
Hello!
I'm using
Turbolinks.visit
manually with partial replacement. Here is an example of such call:On Chrome, FF and Safari, it works as expected. On IE11, a full replacement is done instead of a partial one.
If I use an absolute url:
it works correctly on IE11.
Hence my question, is
Turbolinks.visit
intended to be only used with absolute urls? If so, the readme could be updated: there are someTurbolinks.visit
usage examples with relative urls.After some digging, it seems that this line (
crossOrigin
function inComponentUrl
) is the issue:@origin
returns correctlyhttp://...
//
-> thecrossOrigin
function will returnfalse
-> a full replacement will be done.