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

Fix: Update translated slug #860

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

patrikkarlsson
Copy link

Pull request type

According to Storyblok's documentation, the path property should be used to create a story with a translated slug. However, when I tried to implement this as described, the API did not recognize path as a valid property. By using slug instead of path, I was able to create the translated pages successfully. It seems that the documentation is either outdated or incorrect regarding this point.

Please check the type of change your PR introduces:-->

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Other (please describe):

How to test this PR

Add VITE_OAUTH_TOKEN and VITE_SPACE_ID to local .env and run e2e test.

What is the new behavior?

The path property has been renamed with slug for translated_slugs_attributes and translated_slugs to ensure compatibility with the API.

@patrikkarlsson patrikkarlsson changed the title Fix/update translated slug Fix: Update translated slug Oct 9, 2024
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

Successfully merging this pull request may close these issues.

2 participants