-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Description
Description
If the user opens a new tab and visits an api reference jump link URL to open the search widget, and if the user clicks the close button in the search widget, the page will open a blank (default) tab in the current window. This might be because the close functionality utilizes previous URL history, and if there is none, it will give us a blank window-- though I am not completely sure.
This could be changed by checking to see if there is no prior history, and if so, open the correct api ref page URL without the search widget's jump link.
chrome_VuiFMEUOWT.mp4
Reduced test case
https://docs.videojs.com/audiotracklist#LiBfqbJVcV
Interestingly, a middle click to this URL will cause the correct behavior to occur when the close button is clicked. If the link is pasted into a new tab the error occurs.
Steps to reproduce
- Open the test case link in a fresh tab
- Click the close "x" button in the top right of the widget
- See the browser's default tab open in the current tab
Errors
No response
What version of Video.js are you using?
latest
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
all
What OS(es) and version(s) does this occur with?
all