This question already has an answer here:
When I open on YouTube a video, which is in a playlist, after the video has reached the end another video from that playlist is loaded automatically. In YouTube settings "Repeat playlist" button is turned off, "Autoplay" is turned off. In addition, the Firefox preference "Warn me when websites try to redirect or reload the page" is turned on.
Yet somehow YouTube redirects and loads another web page with another video.
Is it possible to stop this behavior either through YouTube settings, or through the Firefox preferences?