static-cms icon indicating copy to clipboard operation
static-cms copied to clipboard

Empty collection when using i18n with multiple_folders

Open antonioalmeida opened this issue 11 months ago • 3 comments

When using i18n with multiple_folders set up for a collection, in the Admin panel the collection always show up as empty.

Screenshot 2024-03-04 at 03 38 16

I haven't been able to trace the problem, but here are the symptoms:

  • Works locally when using local_backend: true config with proxy-server
  • Problem occurs only in live version, which is setup with git-gateway backend on Github
  • In live version I can still access the individual entries' page via url, e.g.,by going to /admin#/collections/posts/name-of-entry. Updating the entry works as expected (i18n included)

I've created an isolated repo for this.

  • Code is here and this PR contains the only changes from the template repo.
  • I can grant access to the admin panel of the live version if needed to whoever looks into this.
  • Not sure this 100% replicated the problem because I'm facing some weird Github API rate limiting problems which could be getting in the way

antonioalmeida avatar Mar 04 '24 02:03 antonioalmeida

Looks similar to #903 , will explore that

antonioalmeida avatar Mar 04 '24 02:03 antonioalmeida

Actually, seems like things work fine in my template repo. I can't figure out what's causing this, but I can definitely get it working when using i18n without multiple_folders

antonioalmeida avatar Apr 27 '24 16:04 antonioalmeida

Finally fixed this. Overwriting setting path in my collection was causing this

antonioalmeida avatar Jul 03 '24 00:07 antonioalmeida