Skip to content
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

Add link_collection example for popular links on GOV.UK #2816

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

syed-ali-tw
Copy link
Contributor

@syed-ali-tw syed-ali-tw commented Jul 29, 2024

This PR contains 2 changes

  1. Make popular schemas to not require base path when as a link
    Explanation:
    Popular links are set of six links on homepage under title 'Popular on GOV.UK' and they do not need a separate base path to homepage. Popular links utilises link_collection schema and link_collection schema has base_path set as 'optional' (incase we want to use this as for a different content which may require a base_path).
    Now, setting base_path as optional does not necessarily sets it as optional for frontend schema, we still need to add a rule here to make sure it does not requires a base path

  2. Add an example for homepage frontend content with popular links as link to homepage

Trello

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

This application is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

Follow these steps if you are doing a Rails upgrade.

@syed-ali-tw syed-ali-tw force-pushed the link-collections-example branch 6 times, most recently from 07ea0a7 to 2574850 Compare August 1, 2024 11:55
@syed-ali-tw syed-ali-tw force-pushed the link-collections-example branch 3 times, most recently from dcccdfa to 0260a72 Compare August 1, 2024 13:51
@syed-ali-tw syed-ali-tw force-pushed the link-collections-example branch from 0260a72 to e824b23 Compare August 1, 2024 13:52
@syed-ali-tw syed-ali-tw marked this pull request as ready for review August 1, 2024 14:05
@syed-ali-tw syed-ali-tw merged commit e343172 into main Aug 1, 2024
26 checks passed
@syed-ali-tw syed-ali-tw deleted the link-collections-example branch August 1, 2024 16:11
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.

2 participants