This repository was archived by the owner on Sep 25, 2021. It is now read-only.
This repository was archived by the owner on Sep 25, 2021. It is now read-only.
Open
Description
Describe the bug
Currently the url in the adressbar is not being updated when a xhr request follows a 302 redirect response. This is a known issue according to the comment in this issue: #362 (comment)
However contrary to that comment it is possible to get the url of the last redirect by reading the responseURL of a xhr request:
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseURL
This doesn't work in IE, but works in all other browsers.
To Reproduce
- Click a link on a website with turbolinks enabled of which the response contains a 302 redirect
Expected behavior
The url in the adress bar is being update to the url in the last redirect using the responseURL of the completed xhr request
Details (please complete the following information):
- Operating System: macOS, iOS, Android, Linus, Windows
- Browser: Firefox, Chrome, Safari, Opera, Edge
- Turbolinks Version: 5.2.0