Skip to content

Commit

Permalink
Merge pull request #862 from dpc-sdp/bugfix/menu-depth
Browse files Browse the repository at this point in the history
[R20-1522] increase menu depth for breadcrumbs
  • Loading branch information
dylankelly authored Sep 24, 2023
2 parents 6c4ec86 + 0f84540 commit 982060d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/ripple-tide-api/src/services/lib/site-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ const getHierarchicalMenu = function (menu, activeUrl, enabledCheck = false) {
text: link.attributes.title,
url:
link.attributes?.url ||
link.attributes.link.url ||
link.attributes.link.uri,
link.attributes.link?.url ||
link.attributes.link?.uri,
id: link.id.replace(/^(menu_link_content:)/, ''),
parent: link.attributes.parent
? link.attributes.parent.replace(/^(menu_link_content:)/, '')
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-tide-api/src/services/tide-api-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class TideApiBase extends HttpClient {
const params = {
site: siteId,
filter: {
max_depth: 4,
max_depth: 7,
fields: 'title,url,parent,weight'
}
}
Expand Down

0 comments on commit 982060d

Please sign in to comment.