Skip to content
Snippets Groups Projects
Commit 478fb715 authored by Eduardo Alvarez Fernandez's avatar Eduardo Alvarez Fernandez
Browse files

Fix reported error when clicking on the CERN Infrastructure link in...

Fix reported error when clicking on the CERN Infrastructure link in Configuration when using a language prefix url.
https://drupal-community.web.cern.ch/t/broken-link-to-cern-infrastructure-in-french/737/2
parent 52552dfe
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ name: CERN Integration module ...@@ -2,7 +2,7 @@ name: CERN Integration module
description: Custom functionality and constraints for CERN Drupal infrastructure description: Custom functionality and constraints for CERN Drupal infrastructure
package: CERN package: CERN
type: module type: module
version: '8.0.8' version: '8.0.9'
core: 8.x core: 8.x
required: TRUE required: TRUE
\ No newline at end of file
...@@ -2,5 +2,6 @@ cern_integration.settings: ...@@ -2,5 +2,6 @@ cern_integration.settings:
path: '/_site' path: '/_site'
defaults: defaults:
_title: 'CERN Infrastructure' _title: 'CERN Infrastructure'
_controller: '\Drupal\cern_integration\Controller\BackendController::redirect'
requirements: requirements:
_permission: 'administer site configuration' _permission: 'administer site configuration'
<?php
namespace Drupal\cern_integration\Controller;
use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\HttpFoundation\RedirectResponse;
/**
* An example controller.
*/
class BackendController extends ControllerBase {
/**
* Returns a render-able array for a test page.
*/
public function redirect() {
return new RedirectResponse("/_site");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment