-
Notifications
You must be signed in to change notification settings - Fork 234
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-901: Render /persian/afghanistan as a topic page on local & test environments #11221
WSTEAMA-901: Render /persian/afghanistan as a topic page on local & test environments #11221
Conversation
…age on local & test environments""
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.
🤞
const path = [topicPath]; | ||
|
||
if (!isLive()) { | ||
path.push('/persian/afghanistan'); |
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.
Will leave it optional but based on @amoore108's feedback yday we could also do something like
const path = [topicPath, !isLive() && '/persian/afghanistan'].filter(Boolean);
as an alternative if you find this more readable.
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.
Thanks for that @pvaliani. Given that we're going to have to change this again next week, when we put /persian/afghanistan live (and we'll remove all isLive()
logic), are you happy for us to leave it as is for now? (But I'll be bookmarking this comment so that I remember how to do this another time 😸 )
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.
Oh aye, it's totally down to preference! Go for it
Resolves JIRA https://jira.dev.bbc.co.uk/browse/WSTEAMA-901
Overall changes
Renders /persian/afghanistan as a topic page
Code changes
Testing
See ticket for testing information
Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines