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

Fix contributing links #1399

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Fix contributing links #1399

merged 1 commit into from
Oct 3, 2024

Conversation

yndajas
Copy link
Contributor

@yndajas yndajas commented Sep 30, 2024

At present, when you're on the "Benefits" page, clicking on "Add new page" will take you to a form for adding a new "Pay, pension, and benefits" page, the parent of "Benefits". This might have made sense in a previous iteration of the menu/layout, but at present it's confusing. This updates things so that:

  • the homepage only allows you to edit itself, not add a new page (no change)
  • other pages with children allow you to edit the page, and clicking "Add new page" will take you to the CMS page for adding a child of that page (not a sibling, as is presently the case)
  • other pages without children will only allow you to edit the page

We aim to keep the src/admin/config.yml up-to-date with pages that have children, in order to allow creation of new children via the CMS, but in cases where we haven't kept things up to date, bad CMS links should simply redirect to the main CMS page

At present, when you're on the "Benefits" page, clicking on "Add new page"
will take you to a form for adding a new "Pay, pension, and benefits"
page, the parent of "Benefits". This might have made sense in a previous
iteration of the menu/layout, but at present it's confusing. This
updates things so that:
- the homepage only allows you to edit itself, not add a new page (no
  change)
- other pages with children allow you to edit the page, and clicking
  "Add new page" will take you to the CMS page for adding a child of
  that page (not a sibling, as is presently the case)
- other pages without children will only allow you to edit the page

We aim to keep the `src/admin/config.yml` up-to-date with pages that
have children, in order to allow creation of new children via the CMS,
but in cases where we haven't kept things up to date, bad CMS links
should simply redirect to the main CMS page
Copy link

netlify bot commented Sep 30, 2024

Deploy Preview for laughing-payne-b9fbd2 ready!

Name Link
🔨 Latest commit 5642f01
🔍 Latest deploy log https://app.netlify.com/sites/laughing-payne-b9fbd2/deploys/66face2525b8b4000858b476
😎 Deploy Preview https://deploy-preview-1399--laughing-payne-b9fbd2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yndajas yndajas merged commit d5be70b into main Oct 3, 2024
6 checks passed
@yndajas yndajas deleted the fix-contributing-links branch October 3, 2024 15:59
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