Skip to content

Commit

Permalink
LNP-584: 💬 replace references to Entertainment taxonomy term and prim…
Browse files Browse the repository at this point in the history
…ary navigation with Inspire and entertain. (#681)
  • Loading branch information
Eli-TW authored May 13, 2024
1 parent 6991d42 commit 59c600c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/content/breadcrumbs.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"entertainment": {
"href": "/tags/1282",
"text": "Entertainment"
"text": "Inspire and entertain"
},
"games": {
"href": "/tags/647",
Expand Down
4 changes: 2 additions & 2 deletions server/middleware/primaryNavigationMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const mapNoneCMSUrls = (originalUrl, primaryNavigation) => {
case '/approved-visitors':
return '/profile';
case '/games':
// Assumption made that games will appear in an 'entertainment' primary category
// Assumption made that games will appear in the 'inspire and entertain' primary category
return (
primaryNavigation.find(({ text = '' }) =>
text.toLowerCase().includes('entertainment'),
text.toLowerCase().includes('inspire and entertain'),
)?.href || originalUrl
);
default:
Expand Down

0 comments on commit 59c600c

Please sign in to comment.