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

Deduplicate FAQ page schema presentation #1478

Merged
merged 2 commits into from
Sep 11, 2019
Merged

Deduplicate FAQ page schema presentation #1478

merged 2 commits into from
Sep 11, 2019

Conversation

sihugh
Copy link
Contributor

@sihugh sihugh commented Sep 10, 2019

At present we're showing the same FAQ schema on each page of a guide. This is a bit suboptimal. We have the option of splitting it up and showing one question and answer per part/chapter in the guide, but it seems much better to present it to Google as a joined up publication, because that's how it's been designed.

To resolve this problem, we present the FAQ page on the default page of the guide, but fall back to the Article schema for chapter pages, so we're still presenting some schema.org content everywhere, but not presenting duplicate content.

Structured data from /universal-credit should show the FAQ schema
Structured data from /universal-credit/eligibility should show the Article schema

@bevanloon bevanloon temporarily deployed to government-frontend-pr-1478 September 10, 2019 16:18 Inactive
At present we're showing the same FAQ schema on each page of a guide. This
is a bit suboptimal.  We have the option of splitting it up and showing one
question and answer per part/chapter in the guide, but it seems much better
to present it to Google as a joined up publication, because that's how it's
been designed.

To resolve this problem, we fall back to the Article schema for chapter pages,
so we're still presenting some schema.org content, but not presenting duplicate
content.
@bevanloon bevanloon temporarily deployed to government-frontend-pr-1478 September 10, 2019 16:22 Inactive
Resolved due to messages like:

> DEPRECATED: Use assert_nil if expecting nil from test/services/request_helper_test.rb:7.
> This will fail in Minitest 6.
@bilbof
Copy link
Contributor

bilbof commented Sep 11, 2019

🚀

@sihugh sihugh merged commit c52e4f4 into master Sep 11, 2019
@sihugh sihugh deleted the faq-v2 branch September 11, 2019 08:50
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.

3 participants