Not existing uid returns wrong document

Hi @prismic_tymeo

Thanks for reaching out,

I believe that the document with UID "xyz" has been renamed to be "abc," and that is why when you query by the "xyz," you get the "abc" document.

You can't create a document with "xyz" UID, and that has been done why desgn to avoid breaking old URL.

You can release those UID by renaming the document that old UID and here is trick to be able to use the old UID

1 Like