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

Implement noscript for DReact #104

Open
rnorigian opened this issue Sep 2, 2022 · 4 comments
Open

Implement noscript for DReact #104

rnorigian opened this issue Sep 2, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@rnorigian
Copy link

rnorigian commented Sep 2, 2022

To better equip Google's crawler to find DReact related content (like a list of links on the Policies site), modify the dreact module to inject a list of links into a <noscript> tag derived from the assigned endpoint (Drupal View) on the page that the DReact app is embedded.

This injection should only happen when the DReact app is set as "search-filter" (DSF).

Example endpoint view value: https://dev.policy.brown.edu/dsf_combined

Expected behavior:

  • If running search-filter and JS is enabled, display DReact app as usual
  • If running search-filter and JS is disabled, print a list of links with titles to the page within a <noscript> tag
  • If running any other DReact app (other than search-filter, display DReact app as usual
@rnorigian
Copy link
Author

Here's the Google article that spawned this idea: https://developers.google.com/search/docs/advanced/guidelines/hidden-text-links

@joelpattison
Copy link

@rnorigian Thanks for adding this. We may need to clarify the bullet points under "Expected behavior" a bit:

  • The data from the endpoint should always print within the tag. (That's the most accessible approach, and is the best way to ensure Google will crawl the content.)
  • Note: All the data from a given endpoint should print in the tag (e.g., titles, dates, descriptions, etc.). The contents of the should not be limited only to links — and different endpoints provide different fields, depending on the nature of the content.

@rnorigian
Copy link
Author

At the OUC weekly yesterday Joel said that there are a number of other sites (besides Policy) that use DSF that don't have OUC's manual workaround (to get google to crawl) in place. When you're ready to test this, Joel can identify the sites we'd use for monitoring effectiveness.

@jmorton-ca
Copy link
Contributor

OK. There are currently some issues with this that don't relate to getting the data, but relate to the way the dreact module itself works. Some early choices in the project are causing major headaches. Right now I'm trying to get around needing to completely nuke all of the key/value pairs across all sites in order to get it to reload properly.

@jmorton-ca jmorton-ca changed the title Inject DSF Links for Google Crawler Implement noscript for DReact Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants