Closed aaronhans closed 2 years ago
@aaronhans Assigning this back to you - any updates?
also - cleaning up issue - is this a duplicate?
I assigned this to @wrendo because we decided completing the system link so the redirects automatically publish from WordPress wasn't a headless launch blocker.
This seems like a duplicate of https://github.com/cagov/odi-engineering/issues/32
Some useful notes from merging 57 into this thread: https://github.com/cagov/ca-design-system-gutenberg-blocks/issues/57#issuecomment-958092564 https://github.com/cagov/ca-design-system-gutenberg-blocks/issues/57#issuecomment-959413440
https://dev-cagov-dcc.pantheonsite.io/wp-json/redirection/v1/export-public/1/json https://dev-cagov-dcc.pantheonsite.io/wp-json/redirection/v1/export-public/1/csv
@aaronhans
This example on cannabis dev site doesn't have a lot of data but it does work for testing in headless.
Closing: We can reopen, or rescope if needed - no actions are required at this time though. Adding this issue to a list of features we are tracking for publishing hand-over.
We currently have 2 ways we are managing redirects in WordPress:
The cannabis WordPress site uses the plugin from redirection.me. This does a lot of cool things:
Redirect url pairs managed in WordPress post table on covid19 Good parts:
We have done some work on cannabis WP -> headless redirects here: https://github.com/cagov/cannabis.ca.gov/issues/350
We have exported the set of redirects, written and tested a script that uses that dataset to create all the redirects in our AWS hosting environment during the build process. Since you need to be an admin to create a redirect this could possibly be enough to remove redirects as a launch blocker for pointing the cannabis site to the headless version.
We do need to merge our redirect managing strategies though and come up with a standard method of managing them in WordPress and moving the data into the headless host. This is not a huge engineering challenge but we want to come up with the best method that works for site managers.