Skip to content

Implement noscript for DReact #104

@rnorigian

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions