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

Different translated_slugs payloads when using getLiveStory #1101

Open
titouan-pellerin opened this issue Mar 7, 2025 · 0 comments
Open
Assignees
Labels
bug [Issue] Something isn't working good first issue [Contribution] Good for newcomers

Comments

@titouan-pellerin
Copy link

storyblok.com

When you use the Storyblok SDK to get a story, the translated_slugs property looks like this:

[ { path: 'about', name: 'About', lang: 'en', published: true } ]

Oddly, when I use live preview, the payload provided by the query looks like this:

[{ id: 38948726, lang: 'en', slug: 'about', name: 'About', published: null }]

The path key seems to have been replaced by slug.

NB: I think there's clearly a lack of documentation on Storyblok on how to get a localized url.


Expected behavior

Both payloads should have the same keys

Current behavior

The path key seems to have been replaced by slug.

How to reproduce the problem

  1. Configure live preview with the Translatable Slugs application.
  2. Load your page normally and view your payload.
  3. Then update anything live from the Storyblok interface, and watch the payload.
@dipankarmaikap dipankarmaikap self-assigned this Mar 10, 2025
@dipankarmaikap dipankarmaikap added bug [Issue] Something isn't working good first issue [Contribution] Good for newcomers labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [Issue] Something isn't working good first issue [Contribution] Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants