Skip to content

Implement noscript for DReact #104

Description

@rnorigian

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions