visualization-tool icon indicating copy to clipboard operation
visualization-tool copied to clipboard

Enable site indexing in Production

Open adintegra opened this issue 1 year ago • 0 comments

Describe the bug Currently, the Visualize production site includes meta directives which discourage it from being indexed by search engines.

To Reproduce

  1. Go to https://visualize.admin.ch
  2. Open Dev Tools and check the X-Robots-Tag HTTP header

visualize_seo

Expected behavior In the production environment the X-Robots-Tag header should not be set.

Environment

  • Visualize environment and version: PROD 4.0.0

Additional context The functionality for the correct behaviour is already implemented and is controlled by the presence of the environment variable ALLOW_SEARCH_BOTS. However, this doesn't appear to be correctly evaluated at runtime.

adintegra avatar Jul 23 '24 12:07 adintegra