Incorrect embedded videos after back button on chrome
-
Hi, I’ve noticed an issue with a site using WordPress and either the [embed] shortcode or the ‘raw’ vimeo iframe code in conjunction with Chrome. There are 2 different vimeo videos embedded in the same post, both of which are shown on the site front page. All shows fine on initial page load, but after moving to another page and hitting the browser ‘back’ button both of the embedded videos end up showing the same video (as in, one is showing the video it should, the other is not).
Have not to date been able to replicate this in Safari, but have across multiple Chrome installs on several different computers – all without browser add-ons installed.
If I supply a unique ‘name’ value for each iframe this appears to fix this issue, but is definitely only a work-around as it means our non-technical posters will be unable to post embedded vimeo links.On delving into the network activity when this issue occurs I see two calls to different player.vimeo.com/video/******* urls on first load, which are immediately cancelled, and then followed by another two calls (to the different urls) which succeed. On returning to the page with the back button there are again 2 different url calls which are cancelled, followed by 2 succeeding calls, but this time to the same url (obviously resulting in both embedded video players showing the same video).
If anyone is able to provide any insight into this that would be greatly appreciated! I’ve confirmed that this isn’t an issue with embedding vimeo videos into a plain html document, so is presumably an interaction between something running in wordpress and the embedded video(s).
- The topic ‘Incorrect embedded videos after back button on chrome’ is closed to new replies.