Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple-gallery field saves wrong paths #1

Open
raffaelj opened this issue Sep 5, 2020 · 0 comments
Open

simple-gallery field saves wrong paths #1

raffaelj opened this issue Sep 5, 2020 · 0 comments

Comments

@raffaelj
Copy link
Owner

raffaelj commented Sep 5, 2020

The part /storage/uploads is missing in gallery paths.

Steps to reproduce:

  • create collection with a field of type simple-gallery and name it gallery
  • add entry and add assets to gallery
  • use the json inspector to see the entry

expected (if field type is gallery):

"gallery": [
    {
      "meta": {
        "title": "",
        "asset": "5f510f3439386538bb000016"
      },
      "path": "/storage/uploads/2020/09/03/5f510f34815415e8cc9f224d4acockpit_logo.png"
    },

current:

gallery": [
    {
      "meta": {
        "title": "",
        "asset": "5f510f3439386538bb000016"
      },
      "path": "/2020/09/03/5f510f34815415e8cc9f224d4acockpit_logo.png"
    }
  ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant