-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Node URIs are not converted in frontend preview of workspaces #2347
Comments
Sadly we have no real good way of knowing the difference. I am currently working on a workspace preview feature to let non backend users see workspace contents and had a similar problem. In that case I can find out because those users don't have actual backend access roles, so I can differentiate, but for backend users using the frontend preview we can't. We could think about introducing some parameter to the link, but that means it will probably lost if the eidtor clicks a link. |
Is there a workaround available for this? This is really annoying. Our customers often build page areas in a workspace and then present them to the company in preview mode before publishing. |
@Nikdro Did you find any workaround in the meantime? |
@lorenzulrich Sady not, AFAIK. Looks like there where some PRs related here, @bwaidelich mentioned this and similar issues in. But I don't know the current state here. |
@Nikdro I thought it was still open, but I see that links are rendered, pointing to the same workspace. The links I had the problem with have a different rendering for frontend and backend, and the problem is that Preview behaves like backend, even if it is frontend. But this is handled in #3019. It looks to me as if this issue could be closed? |
There is a flag forceConversion:
doesn't that help` |
I just stumbled on this issue too (there was also a slack discussion about this some time ago: https://neos-project.slack.com/archives/C050C8FEK/p1635416386088300) As far as i can tell neos-development-collection/Neos.Neos/Resources/Private/Fusion/Prototypes/Editable.fusion Line 15 in 30c8df2
${props.node.context.inBackend && props.node.context.currentRenderingMode.edit}
Just for clarification, there is no direct difference between the preview url (see screenshot) and the url of the iframe. There is almost no way of telling from inside the rendering if one is truly in the backend (inside the iframe) or not. The only current workaround is, to switch the edit mode to Desktop and then open the preview (or reload) (Also, not being a big issue, but still: the content element wrapping is also rendered in the preview mode.) edit: |
i was able to correctly determine if the page is rendered in the iframe or in the external preview via my discovery above:
this can be formulated like and now we could extend f.x. the
im not sure where to go from now - and with a view to the new CR a lot will change ... |
The issue still persists: #4959 |
The
ConvertUrisImplementation
only converts URIs, if the workspace is live (line 86). This means that editors that preview their workspace in the frontend won't be able to check if the links they set work as intended. Is there a better way to check whether or not the user is viewing something in the backend or in a frontend preview?The text was updated successfully, but these errors were encountered: