bbc / simorgh

The BBC's Open Source Web Application. Contributions welcome! Used on some of our biggest websites, e.g.
https://www.bbc.com/thai
Other
1.39k stars 219 forks source link

AV-Embeds Next.js routing #11804

Closed amoore108 closed 1 month ago

amoore108 commented 1 month ago

Part of https://jira.dev.bbc.co.uk/browse/WSTEAM1-1191

Overall changes

Code changes

Testing

  1. Run branch locally
  2. Visit: http://localhost:7081/serbian/cyr/av-embeds/srbija-68707945
  3. Check it parses the URL and returns an object with the expected values
  4. Visit: http://localhost:7081/russian/av-embeds/features-49881797/pid/p07q3wwl
  5. Check it parses the URL and returns an object with the expected values
  6. Visit: http://localhost:7081/serbian/cyr/av-embed/srbija-50103048/pid/p07rfhrv
  7. Check it returns a 404 page (note the missing s in av-embeds in the URL)

Helpful Links

Add Links to useful resources related to this PR if applicable.

Coding Standards

Repository use guidelines