Skip to content

Navigation spike - expanded reverse links [WHIT-3342]#4075

Closed
ChrisBAshton wants to merge 4 commits into
mainfrom
navigation-spike--expanded-reverse-links
Closed

Navigation spike - expanded reverse links [WHIT-3342]#4075
ChrisBAshton wants to merge 4 commits into
mainfrom
navigation-spike--expanded-reverse-links

Conversation

@ChrisBAshton

Copy link
Copy Markdown
Contributor

Jira: https://gov-uk.atlassian.net/browse/WHIT-3342


This application is owned by the Content APIs team. Please let us know in #govuk-content-apis when you raise any PRs.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@ChrisBAshton ChrisBAshton force-pushed the navigation-spike--expanded-reverse-links branch from 6f41b6e to ff2c3d5 Compare May 29, 2026 08:51
Comment thread lib/expansion_rules.rb
# These expand every member of the reciprocal direct link type from
# the source link set, instead of only mirroring the edition being expanded.
REVERSE_LINKS_WITH_MEMBER_EXPANSION = {
document_collections: :documents,

@ChrisBAshton ChrisBAshton May 29, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd create a new document type and link type, but you get the idea.

Suggested change
document_collections: :documents,
shared_navigation: :navigation_items,

± or shared_navigation, in future. We're just piggy-backing onto
document_collections for the spike.
@ChrisBAshton

Copy link
Copy Markdown
Contributor Author

Moved to #4085

@ChrisBAshton ChrisBAshton deleted the navigation-spike--expanded-reverse-links branch June 2, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant