Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScriptYouTubePlayer: script doesn't load if you navigate from a page with a script to another page with a script without triggering the previous one #265

Closed
ahmedrangel opened this issue Sep 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ahmedrangel
Copy link

ahmedrangel commented Sep 15, 2024

🐛 The bug

  1. Start the stackblitz reproduction
  2. You must be on the index page /
  3. DO NOT click the video in index
  4. Click Go to Page
  5. Try to play the video clicking it
  6. See that the script won't load the video

Btw, after following these steps, if you back to index and then back again to /page the script will load automatically without clicking it.

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-hulk8u

🌈 Expected behavior

The script in /page should be loaded after following these steps

ℹ️ Additional context

nuxt: 3.13.1
@nuxt/scripts: 0.9.0

@ahmedrangel ahmedrangel added the bug Something isn't working label Sep 15, 2024
@harlan-zw
Copy link
Collaborator

Thanks for the reproduction, this is fixed in 0.9.1. See https://stackblitz.com/edit/nuxt-starter-yg8kfy?file=pages%2Fpage.vue

@ahmedrangel
Copy link
Author

ahmedrangel commented Sep 15, 2024

Thanks for the reproduction, this is fixed in 0.9.1. See https://stackblitz.com/edit/nuxt-starter-yg8kfy?file=pages%2Fpage.vue

Thank you for the fix! It's working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants