Closed jmojiwat closed 4 years ago
I noticed the new single content method and tried to use it in our app: await client.GetItemAsync("about-us")
await client.GetItemAsync("about-us")
Always throws NotFound error when there is a dash in the Content Item Name.
This method works if I remove the dash in the Content Item Name. e.g.: await client.GetItemAsync("aboutus")
await client.GetItemAsync("aboutus")
What went wrong?
Throws Unknown error. HTTP status code: NotFound. Reason phrase: Not Found.
What the correct behavior is?
Expected the client to be able to find content with Content Item Name that contains dashes.
After some poking around. I noticed that when there are dashes in the Content Item Name, the generated Codename will replace the dashes with underscores.
Brief bug description
I noticed the new single content method and tried to use it in our app:
await client.GetItemAsync("about-us")
Always throws NotFound error when there is a dash in the Content Item Name.
This method works if I remove the dash in the Content Item Name. e.g.:
await client.GetItemAsync("aboutus")
What went wrong?
Throws Unknown error. HTTP status code: NotFound. Reason phrase: Not Found.
Expected behavior
What the correct behavior is?
Expected the client to be able to find content with Content Item Name that contains dashes.
Test environment