Yoast / Yoast-SEO-for-TYPO3

Yoast SEO plugin for TYPO3
Other
51 stars 56 forks source link

Google preview snippet does not show workspace changes #512

Open Jashi opened 1 year ago

Jashi commented 1 year ago

Please give us a description of what happened.

If an editor edits the seo title or seo description in a workspace the changes are shown immediately in the google preview snippet but after saving the changes the preview snippet will go back to showing the live content (because yoast renders the page without workspace mode and "reads" title and description).

Please describe what you expected to happen and why.

As an editor I expect the preview snippet to show my current code - in or outside of a workspace. Otherwise I have to publish content to see the result which is not desirable.

How can we reproduce this behavior?

  1. Edit the seo title and/or description in workspace
  2. Save your changes

Technical info

Jashi commented 1 year ago

Ok, we've used the Hook provided by Yoast to modify the URL for our workspace, so this isn't a problem in our project anymore.

RinyVT commented 1 year ago

Hi @Jashi,

I'm planning to take a look at this for the upcoming major version. Problem with these workspace changes, and for example #319, is that we first do a request to a backend route, which in turn does the actual page request. The actual page request does not include the current backend user session so it's important that making this a possibility does not introduce security issues. Was it only a change in the URL for you to make it work, or did you also have to do some other changes?

Jashi commented 1 year ago

Yes, we simply changed the URL. We don't have different backend user rights so that was not an issue fortunately.