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

Customisable workspace #217

Open
DavithkbY opened this issue Sep 6, 2024 · 0 comments
Open

Customisable workspace #217

DavithkbY opened this issue Sep 6, 2024 · 0 comments

Comments

@DavithkbY
Copy link

DavithkbY commented Sep 6, 2024

Currently we are using the workspaces as a way to manage content in different languages. Example here:
image

These workspaces live in certain urls in the sanity studio for the English workspace studio.url/en , for the French one studio.url/fr , etc...

This means when using the visual editor and clicking 'open in studio' it will open this url:
https://studio.url/intent/edit/mode=presentation;id=8541491f-4362-494c-b832-6fe256929c0a;type=contentPage;path=intro.intro%3A696f917f80d5.children%3Ab30f4b1d1ae42.text?baseUrl=https%3A%2F%2Famexio-fuse.sanity.studio&id=8541491f-4362-494c-b832-6fe256929c0a&type=contentPage&path=intro.intro%3A696f917f80d5.children%3Ab30f4b1d1ae42.text

Of course this won't work because it isn't in any workspace it should have /en/edit/... .
I think more people will be running in this issue. Is it possible to make the workspace configurable in the React component. When we're on a English frontend page it should open the preview url in the English workspace: studio.url/en/edit/...
When we're on a French part of the frontend it should open in studio.url/fr/edit/...

I can see more scenarios where this will be needed. Not only for when people use the workspaces as translations but also for when content from multiple workspaces is being used on the same frontend. This issue will occur too.

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