Skip to content

Commit

Permalink
Remove all leading slashes from redirects. Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperson1 committed Mar 12, 2024
1 parent 3e7f76c commit 7f1dee8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
3 changes: 2 additions & 1 deletion src/_includes/resources_page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ layout: layout.njk
<hr>
<div class="font-sans-lg">{{content | safe}}</div>

{# Cards are generated from the current pages 'collectionName'. To add more cards, navigate to collections and ensure the #}
{# Cards are generated from the current pages 'collectionName'.
To add more cards, navigate to collections and ensure the tags match up with the pages collectionName. #}
<ul class="resources usa-card-group margin-top-8 margin-bottom-4">
{% set indexList = collections[collectionName] %}
{% for item in indexList %}
Expand Down
46 changes: 24 additions & 22 deletions src/redirects.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,35 @@ pagination:
size: 1
alias: redirect
redirects:
# "from" - The place we want to overwrite with a redirect page. Leading slashes are necessary to identify the permalink.
# "to" - The place we want the redirect to go. No leading slashes, so it can play nice with different baseUrl's (local, prod, federalist).
# Search resources
- {"from": "/data/resources/", "to": "/search-resources/"}
- {"from": "/data/tribal/", "to": "/search-resources/tribal/"}
- {"from": "/data/resources/", "to": "search-resources/"}
- {"from": "/data/tribal/", "to": "search-resources/tribal/"}
# API pages
- {"from": "/developers/", "to": "api/"}
- {"from": "/developers/dictionary/", "to": "/api/dictionary/"}
- {"from": "/developers/getting-started/", "to": "/api/getting-started/"}
- {"from": "/developers/rollups/", "to": "/api/rollup/"}
- {"from": "/developers/differences/", "to": "/api/differences/"}
- {"from": "/developers/api-versioning/", "to": "/api/versioning/"}
- {"from": "/developers/terms/", "to": "/api/terms/"}
- {"from": "/developers/dictionary/", "to": "api/dictionary/"}
- {"from": "/developers/getting-started/", "to": "api/getting-started/"}
- {"from": "/developers/rollups/", "to": "api/rollup/"}
- {"from": "/developers/differences/", "to": "api/differences/"}
- {"from": "/developers/api-versioning/", "to": "api/versioning/"}
- {"from": "/developers/terms/", "to": "api/terms/"}
# Audit resources
- {"from": "/audits/", "to": "/audit-resources/"}
- {"from": "/resources/instructions/", "to": "/audit-resources/how-to/"}
- {"from": "/resources/workbooks/federal-awards/", "to": "/audit-resources/sf-sac/federal-awards/"}
- {"from": "/resources/workbooks/notes-to-sefa/", "to": "/audit-resources/sf-sac/notes-to-sefa/"}
- {"from": "/resources/workbooks/federal-awards-audit-findings/", "to": "/audit-resources/sf-sac/federal-awards-audit-findings/"}
- {"from": "/resources/workbooks/federal-awards-audit-findings-text/", "to": "/audit-resources/sf-sac/federal-awards-audit-findings-text/"}
- {"from": "/resources/workbooks/corrective-action-plan/", "to": "/audit-resources/sf-sac/corrective-action-plan/"}
- {"from": "/resources/workbooks/additional-ueis-workbook/", "to": "/audit-resources/sf-sac/additional-ueis-workbook/"}
- {"from": "/resources/workbooks/secondary-auditors-workbook/", "to": "/audit-resources/sf-sac/secondary-auditors-workbook/"}
- {"from": "/resources/workbooks/additional-eins-workbook/", "to": "/audit-resources/sf-sac/additional-eins-workbook/"}
- {"from": "/audits/", "to": "audit-resources/"}
- {"from": "/resources/instructions/", "to": "audit-resources/how-to/"}
- {"from": "/resources/workbooks/federal-awards/", "to": "audit-resources/sf-sac/federal-awards/"}
- {"from": "/resources/workbooks/notes-to-sefa/", "to": "audit-resources/sf-sac/notes-to-sefa/"}
- {"from": "/resources/workbooks/federal-awards-audit-findings/", "to": "audit-resources/sf-sac/federal-awards-audit-findings/"}
- {"from": "/resources/workbooks/federal-awards-audit-findings-text/", "to": "audit-resources/sf-sac/federal-awards-audit-findings-text/"}
- {"from": "/resources/workbooks/corrective-action-plan/", "to": "audit-resources/sf-sac/corrective-action-plan/"}
- {"from": "/resources/workbooks/additional-ueis-workbook/", "to": "audit-resources/sf-sac/additional-ueis-workbook/"}
- {"from": "/resources/workbooks/secondary-auditors-workbook/", "to": "audit-resources/sf-sac/secondary-auditors-workbook/"}
- {"from": "/resources/workbooks/additional-eins-workbook/", "to": "audit-resources/sf-sac/additional-eins-workbook/"}
# Info
- {"from": "/resources/instructions/user-access/", "to": "/audit-resources/user-access/"}
- {"from": "/info/updates/", "to": "/updates/"}
- {"from": "/info/updates/archive/", "to": "/updates/archive/"}
- {"from": "/info/announcements/", "to": "/omb/"}
- {"from": "/resources/instructions/user-access/", "to": "audit-resources/user-access/"}
- {"from": "/info/updates/", "to": "updates/"}
- {"from": "/info/updates/archive/", "to": "updates/archive/"}
- {"from": "/info/announcements/", "to": "omb/"}
permalink: "{{ redirect.from }}"
layout: redirect.njk
---

0 comments on commit 7f1dee8

Please sign in to comment.