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

Use the updated FAQ schema #1492

Merged
merged 2 commits into from
Sep 19, 2019
Merged

Use the updated FAQ schema #1492

merged 2 commits into from
Sep 19, 2019

Conversation

sihugh
Copy link
Contributor

@sihugh sihugh commented Sep 19, 2019

The FAQ schema now only supports single page bodies rather than being able to traverse an array of guide sections. This means we should now use the :faq schema on all guide parts.

Some guide tests in this repo exercise a path where a guide has no parts which is why the conditional in the guide.html.erb view is required.

The change to the schema allows us to add it to mainstream answers.

Checkout:

Guides:

Answers:

You can paste the page source into https://search.google.com/structured-data/testing-tool/u/0/ or https://search.google.com/test/rich-results to verify it works. Using the URL fails because we've put auth on the review app.

(I'd preview it for you with a screenshot, but the rich results preview tool seems to be broken)


Component guide for this PR:
https://government-frontend-pr-1492.herokuapp.com/component-guide

@bevanloon bevanloon had a problem deploying to government-frontend-pr-1492 September 19, 2019 09:23 Failure
@bevanloon bevanloon temporarily deployed to government-frontend-pr-1492 September 19, 2019 09:42 Inactive
The FAQ schema now supports single page bodies rather than multipart guide
sections. Some tests in this repo exercise a path where a guide has no parts
which is why the conditional in the guide.html.erb view is required.

The change to the schema allows us to add it to mainstream answers too.
@bevanloon bevanloon temporarily deployed to government-frontend-pr-1492 September 19, 2019 14:40 Inactive
@sihugh sihugh changed the title Add FAQ schema to answers Use the updated FAQ schema Sep 19, 2019
@sihugh sihugh marked this pull request as ready for review September 19, 2019 14:48
This is repeated a few times now and doesn't add much by being there.
@sihugh sihugh merged commit 15bb924 into master Sep 19, 2019
@sihugh sihugh deleted the answer-schema branch September 19, 2019 15:58
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