visualization-tool
visualization-tool copied to clipboard
Enable site indexing in Production
Describe the bug Currently, the Visualize production site includes meta directives which discourage it from being indexed by search engines.
To Reproduce
- Go to https://visualize.admin.ch
- Open Dev Tools and check the
X-Robots-TagHTTP header
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.