Skip to content

Add script to generate redirect mapping file#170

Closed
Ephraim-G wants to merge 5 commits into
mainfrom
doc-redirects
Closed

Add script to generate redirect mapping file#170
Ephraim-G wants to merge 5 commits into
mainfrom
doc-redirects

Conversation

@Ephraim-G

Copy link
Copy Markdown
Contributor

Changes proposed in this pull request:

  • Convert file path to new docs url path
  • Maps old url to new one
  • Outputs redirects in a json file in the data folder

security considerations

N/A

@Ephraim-G Ephraim-G self-assigned this Jul 18, 2025
Comment thread _data/redirects.json Outdated
@Ephraim-G
Ephraim-G requested a review from apburnes July 18, 2025 19:47
@apburnes

Copy link
Copy Markdown
Contributor

I cannot get these to redirect when running the branch locally or in the preview deployment. Also, it appears all of the redirect urls still have contentcontent in the path. How are the redirects suppose to work?

@Ephraim-G

Copy link
Copy Markdown
Contributor Author

None of the redirects will work yet, this is just prep work before the new domain goes up. Next commit will correct the path definitively.

@apburnes

Copy link
Copy Markdown
Contributor

Ok. Even if the docs.cloud.gov isn't up yet, can we add the redirecting to the URLs in this PR to test the redirects?

@sknep sknep closed this Aug 27, 2025
@Ephraim-G
Ephraim-G deleted the doc-redirects branch August 28, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants