coyote-team / coyote-wp

Wordpress Plug-in for Coyote
2 stars 2 forks source link

Host URIs appear to be incorrect #86

Closed flipsasser closed 3 years ago

flipsasser commented 3 years ago

I'm not clear on the origin of this issue but it would be great if you could track it down on your end while I check mine. Here's an example resource: https://staging.coyote.pics/organizations/60-cooper-hewitt-semipermanent/resources/416921

It appears that the host URI for that resource is just the source URI with the file extension cut off. I would argue that the root URL is at least one host URI that should be set for it, since it appears on the homepage: https://chsdmdev.wpengine.com/

Further, those host URIs are 404'ing out as they are apparently not valid.

Thanks for looking into it!

jkva commented 3 years ago

@flipsasser this was a bug in the way the parent posts were resolved. It's been addressed in v1.6, thank you 👍

sinabahram commented 3 years ago

@jkva this is a pretty fundamental issue, so is there a way of retroactively fixing it for existing resources?

jkva commented 3 years ago

@sinabahram by running an import, yes. I've done so on CH's dev instance.

sinabahram commented 3 years ago

Sure, but how are we fixing in production. This is already running on prod.

jkva commented 3 years ago

@sinabahram I would expect it to be the same case; if an admin runs an import with the latest version of the plugin, any existing resources coyote-side will be amended with the correct host uri.

sinabahram commented 3 years ago

perfect