I am trying to use the youtube data api to generate a video playlist.
However, the video urls require a format of:
youtube.com/watch?v=3sZOD3xKL0Y <
This worked for me:
window.location.replace(window.location.pathname)