-
Notifications
You must be signed in to change notification settings - Fork 230
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
Lang attribute on AV embed endpoint #3342
Comments
It looks like we can use the We should check that these values are the write |
Just to check I will be testing this correctly, do I just need to check that the 'html lang="en"' changes to the appropriate language e.g lang="ko" @pjlee11 |
@LilyL0u correct, just checking they match the correct lang for the service |
Sorry I accidentally closed and reopened the issue, because I thought the button just closed the window with the issue open in 🙈 |
We can't use
This does not work for our embed URLs, as they do not contain the product. Mozart believes the product is "ws" because that is the first part of the URL We can implement an alternative method for the live radio URLs, as they have the service ID, and the product can be mapped from that, eg, However, the articles URLs, and our proposed URLs for future page types, do not have enough information to determine the language / product. Article URLs are in the format: Possibly need a discussion on how to move forward with this |
Blocked based on discussion with article pod - it's possible we don't do this ticket at all - waiting for confirmation |
Unassigning from me as it is mostly down to articles if they want to change their URLs Note Mozart does seem to accept query strings - to get lang from the request query string in Mozart routing:
If this value is added to the payload, eg, under the
|
SMP itself produces an iframe which currently doesn't provide a |
Next steps are to a11y test this to assess the actual impact on AT. |
Update: as per #3877 we have removed the hardcoded
AFAICT from Googling If we find that the a11y test for this doesn't have any errors I propose closing this Issue as won't fix. |
Is your feature request related to a problem? Please describe.
In the Mozart page templates for the
/ws/*
media embed endpoints we currently have<html lang="en">
hardcoded. We need to be able to set the lang attribute on the embed endpoint based on parameters in the request URL. This is needed so we can set the lang based on the current language of the service, page or block.Any changes made to the
/ws/av_embeds_media
template should also be made to/ws/av_embeds_articles
template.It is also worth evaluating if the 2 different payload could share a unified template< not possible.Describe the solution you'd like
Edit the lang attribute in the Mozart page template so that it can be defined in the request URL.
Describe alternatives you've considered
If it is not possible to use the request URL to vary the lang then we will need to create a template for each service.
Testing notes
We will want to make sure that the relevant
lang
code is returned as expected when visitingws
sites.Media liveradio AV embed URLs
https://www.test.bbc.com/ws/av-embeds/media/bbc_korean_radio/liveradio should have
lang="ko"
https://www.test.bbc.com/ws/av-embeds/media/bbc_indonesia_radio/liveradio should have
lang="id"
https://www.test.bbc.com/ws/av-embeds/media/bbc_tigrinya_radio/liveradio should have
lang="ti"
https://www.test.bbc.com/ws/av-embeds/media/bbc_amharic_radio/liveradio should have
lang="am"
https://www.test.bbc.com/ws/av-embeds/media/bbc_afaanoromoo_radio/liveradio should have
lang="om"
Articles AV embed URLs
https://www.test.bbc.com/ws/av-embeds/articles/c3wmq4d1y3wo/p01kdbnv should have
lang="en-gb"
https://www.test.bbc.com/ws/av-embeds/articles/c3wmq4d1y3wo/p01k6msp should have
lang="en-gb"
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: