Published Static page not found

Hi there!
I’ve tried to publish a Blog page using Static Collection and Static pages, but it does not seem to publish.
When I go to the published URL, browser shows 404 not found error.
Slug in Editor is right, but when I try to use the same slug with my domain, it doesn’t work.

Also I have a page with on the /blog path.

Everything seems to work fine in the editor, what can be the problem?

Edit:
Even the preview version (x.weweb-preview.io/xx) doesn’t load

@Quentin
Sorry for disturbing. Can you help with that?

Hi @nekitonn :wave:

If it’s not working in the preview version either, I’m not sure what the problem could be.

Could you send me a link to the WeWeb project in a direct message so I can have a look?

Hi @nekitonn, got a solution! :partying_face:

This happens when the collection page refers to an array inside a collection.

The solution:

  1. add a result.key to your collection so your collection of data is an array and not an object.
  2. re-bind the collection page to your collection (now an array)
  3. re-publish the project

How to fix it in your case :point_down:

Result key:

Collection page binding:

Seems to work now! Thanks!

1 Like

I seem to be having this exact same issue, although my connection is via the Xano plugin so I’m not sure what the fix would be. I imagine the Xano plugin configures this automatically, right? Here is a screenshot:

My goal isn’t to use this collection to filter through (I’ll be doing that via a separate dynamic collection), I literally just need static pages for all my products. Perhaps the issue is that I need to create a separate response that doesn’t include all of the pagination stuff (see below)?

UPDATE: That was the solution! Problem fixed!

2 Likes