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

add a parameter to YT video URL link to prevent unnecessary suggestions #333

Merged
merged 1 commit into from
May 15, 2024

Conversation

aaryanporwal
Copy link
Contributor

@aaryanporwal aaryanporwal commented May 14, 2024

Done

Added a rel=0 parameter to YouTube URL link to prevent videos from other channels to show up in suggestions after the video reaches the end. The solution comes from this SO thread.

Similar to: canonical/ubuntu.com#13862

QA

  • Check out the demos

  • Play the YouTube embedded video on the homepage till the end
    Check all the suggestion videos that pop-up and check if all of them come from Canonical YT channel.

Issue / Card

Fixes #

Screenshots

[if relevant, include a screenshot]

@webteam-app
Copy link

@aaryanporwal aaryanporwal requested a review from edlerd May 14, 2024 10:33
Copy link
Contributor

@edlerd edlerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the demo link looks broken, the first part of the home page has a grey background which doesn't play well with the image on the right side:

image

This is different to https://anbox-cloud.io/ where we have a white background for the first strip on the homepage.

@aaryanporwal
Copy link
Contributor Author

aaryanporwal commented May 14, 2024

the demo link looks broken, the first part of the home page has a grey background which doesn't play well with the image on the right side:

This is different to https://anbox-cloud.io/ where we have a white background for the first strip on the homepage.

Hmm I can't pin point what must be causing that disparity.

@aaryanporwal
Copy link
Contributor Author

I just rebased, and I think it works. Can you take a look again?

@aaryanporwal aaryanporwal requested a review from edlerd May 14, 2024 12:40
Copy link
Contributor

@edlerd edlerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@edlerd edlerd merged commit afd272c into canonical:main May 15, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants