cagov / ca-design-system-gutenberg-blocks

DEPRECATED: CA Design System Gutenberg blocks for WordPress.
MIT License
4 stars 5 forks source link

Redirection handling #57

Closed chachasikes closed 2 years ago

chachasikes commented 3 years ago

Sort our redirection capabilities & decide on data structure desired by headless pipeline.

See if we can expose redirection plugin data to headless in order to give a redirection UI to site admins from wordpress for additional redirects not accommodated by page renames. (Also check how redirection captures page slug renames)

Note: Aaron did some work on this already

chachasikes commented 2 years ago

Hey @aaronhans - Can you update us on the status of this system? What tasks are remaining?

aaronhans commented 2 years ago

Completed:

Remaining:

aaronhans commented 2 years ago

Open ticket assigned to @wrendo to help prioritize the how will we synch wordpress and git repo redirect set here: https://github.com/cagov/cagov-design-system-headless-wordpress/issues/3

chachasikes commented 2 years ago

This is a duplicate of https://github.com/cagov/cagov-design-system-headless-wordpress/issues/3 Closing & archiving

chachasikes commented 2 years ago

Never mind, reopening!

aaronhans commented 2 years ago

depends on https://github.com/cagov/wordpress-to-github/issues/50

aaronhans commented 2 years ago

Thanks for volunteering to publicly expose the endpoints that let us retrieve the list of existing redirects @chachasikes

We can use this ticket for that work:

Plugin's REST documentation: https://redirection.me/developer/rest-api/

Endpoints we need to hit without authenticating:

https://live-drought-ca-gov.pantheonsite.io/wp-json/redirection/v1/export/1/json or https://live-drought-ca-gov.pantheonsite.io/wp-json/redirection/v1/export/1/csv

I'll complete the additions to wordpress-to-github and the headless repo on the https://github.com/cagov/cagov-design-system-headless-wordpress/issues/3 ticket

xjensen commented 2 years ago

@aaronhans It turns out I'm already working on cagov/wordpress-to-github#50. The PR is at cagov/wordpress-to-github#91. See this comment for details.

chachasikes commented 2 years ago

(pre-merged example: https://github.com/cagov/drought.ca.gov/blob/odi-engineering-32/restore-redirects/src/redirects/assign.js)

Updates on this:

chachasikes commented 2 years ago

Is duplicate of #56

Closing this one & keeping one main thread for redirects.