thoughtis / cata-blocks

Block Editor components for use with the Cata theme.
GNU General Public License v3.0
1 stars 0 forks source link

Decode REST API block URLs #123

Closed jessica-townsend closed 2 days ago

jessica-townsend commented 8 months ago

Background

We've noticed an issue with the Horoscope layout on the REST API block that's causing the output to "freeze" and no longer update to the latest horoscope post. The horoscope links don't work either. The editor shows ~10 posts with different dates. The REST API URL in the editor has & instead of & for the query string, which causes any tag or per_page arguments to not work correctly. It seems like the & symbol gets changed if another user edits the page.

Details

jessica-townsend commented 3 days ago

Reopening since this problem is still occurring. We should check if the decoded URL is still being used after it's cached, since the horoscope block doesn't break right away.