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

UHF-10819: Removed x-robots-tag header in favor of nginx based solution #835

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions modules/helfi_robots_header/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Helfi Robots Header

Handles robots-tag header if `helfi_proxy` module can't be installed.

This module adds `X-Robots-Tag: noindex, nofollow` to all page responses if `DRUPAL_X_ROBOTS_TAG_HEADER` if set to 1.

**NOTE:** Because this duplicates some functionality from `helfi_proxy` module, both modules should not be enabled at the same time.

This module is removed in favor of nginx based solution. See https://github.com/City-of-Helsinki/drupal-docker-images/blob/main/openshift/drupal/files/entrypoints/99-nginx.sh for more information.
18 changes: 18 additions & 0 deletions modules/helfi_robots_header/helfi_robots_header.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/**
* @file
* Contains install hooks for helfi_robots_header module.
*/

declare(strict_types=1);

/**
* Uninstall the module.
*/
function helfi_robots_header_update_9001() : void {
/** @var \Drupal\Core\Extension\ModuleInstallerInterface $moduleInstaller */
$moduleInstaller = Drupal::service('module_installer');
$moduleInstaller->uninstall(['helfi_robots_header']);
}

4 changes: 0 additions & 4 deletions modules/helfi_robots_header/helfi_robots_header.services.yml

This file was deleted.

This file was deleted.

Loading