Closed amoore108 closed 2 years ago
Looks good.
Will we still render huge IDs though? Should we also parse something shorter and unique from the urls in Simorgh that are passed in here
Yea there is a potential that the IDs could still be huge, although I think the error was generated from the special characters rather than the overall length.
We could try and get the asset ID from the URL, which should always be the value after the last /
if I'm correct?
We could try and get the asset ID from the URL, which should always be the value after the last / if I'm correct?
I believe these links aren't programmatic - editorial can put almost anything in the URL. The one we noticed the issue on had a twitter querystring in it
We could try and get the asset ID from the URL, which should always be the value after the last / if I'm correct?
I believe these links aren't programmatic - editorial can put almost anything in the URL. The one we noticed the issue on had a twitter querystring in it
Ah yea, dang. Probably safest just to strip out the special chars then, even if it means some long looking IDs.
Resolves https://github.com/bbc/simorgh/issues/9696
Overall change:
Removes special characters from IndexAlsos aria-labels as IDs cannot contain them.