turbolinks / turbolinks-classic

Classic version of Turbolinks. Now deprecated in favor of Turbolinks 5.
MIT License
3.54k stars 428 forks source link

Fix Turbolinks.visit() #582

Closed santib closed 9 years ago

santib commented 9 years ago

If the browser doesn't support Turbolinks, when Turbolinks.visit() was being called with no parameters document.location.href = undefined was executed, resulting in a request to a non-existent route.

This is not happening if the browser does support Turbolinks.

This commit fixes this issue.

Thibaut commented 9 years ago

Thanks!