-
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
WSTEAMA-1515-added support for routes to have variants at the end #12333
base: latest
Are you sure you want to change the base?
WSTEAMA-1515-added support for routes to have variants at the end #12333
Conversation
Apologies for having this all in one commit, I made the changes on latest and then transferred them to a new branch and was having issues with git. |
…-script-at-the-end
…e-end' of github.com:bbc/simorgh into WSTEAMA-1514-update-topics-urls-to-include-script-at-the-end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one!
${TOPIC_PAGE} | ${'zhongwen'} | ${'trad'} | ${'live'} | ${'/zhongwen/topics/cpydz21p02et/trad'} | ${'https://mock-bff-path/?id=cpydz21p02et&service=zhongwen&pageType=topic&variant=trad&serviceEnv=live'} | ||
${TOPIC_PAGE} | ${'zhongwen'} | ${'simp'} | ${'live'} | ${'/zhongwen/topics/c4vmr03pyn6t/simp'} | ${'https://mock-bff-path/?id=c4vmr03pyn6t&service=zhongwen&pageType=topic&variant=simp&serviceEnv=live'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need similar examples for local and test environments?
Resolves (https://jira.dev.bbc.co.uk/browse/WSTEAMA-1514)
Overall changes
Added support for routes with variants such that the variant is at the end of the script. e.g.
Before: /service/variant/topics/id
After: /service/topics/id/variant
Code changes
Testing
Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines