Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

ContentDeliveryAPI Doesn't Find Landing Page In SPA

Vote:
 

I have an EpiServer project in which I am using the ContentDeliveryAPI to populate an SPA front-end (Vue). 

When the site loads, the landing page gets a 404 error returned from the API (either with friendly URL or by content ID). If I then navigate into sub-pages of the site, the API returns the valid page content - but any navigation back to the landing page results in a 404.

If I try the same API calls in Postman, the correct page data is returned so the issue is only when called from the SPA.

e.g

Page "http://local.cms.foundation/" returns 404 in the browser but 200 in Postman

Page "http://local.cms.foundation/blog/" returns 200 in the browser and in Postman

I am using Epi v11.24, ContentDeliveryApi v2.10

#249207
Feb 25, 2021 9:24
Vote:
 

We encountered a similar issue when developing an SPS ste in Epi. We struggled to find a resolution to this issue (and several other 'features' caused us issues when developing our SPA). 

We ultimately developed our own API to retreive the data from Epi.

#254076
Apr 29, 2021 8:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.