Skip to content
Snippets Groups Projects
Commit e5a05a48 authored by catch's avatar catch
Browse files

Issue #3275491 by dewalt, murz, pooja_sharma, avpaderno, Nicolas Bouteille,...

Issue #3275491 by dewalt, murz, pooja_sharma, avpaderno, Nicolas Bouteille, dmitry.korhov: External application is redirected to frontpage in maintenance mode
parent 5f44b4b4
No related branches found
No related tags found
10 merge requests!10602Issue #3438769 by vinmayiswamy, antonnavi, michelle, amateescu: Sub workspace does not clear,!10301Issue #3469309 by mstrelan, smustgrave, moshe weitzman: Use one-time login...,!10187Issue #3487488 by dakwamine: ExtensionMimeTypeGuesser::guessMimeType must support file names with "0" (zero) like foo.0.zip,!9929Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9787Resolve issue 3479427 - bootstrap barrio issue under Windows,!9742Issue #3463908 by catch, quietone: Split OptionsFieldUiTest into two,!9526Issue #3458177 by mondrake, catch, quietone, godotislate, longwave, larowlan,...,!6502Draft: Resolve #2938524 "Plach testing issue",!38582585169-10.1.x,!3226Issue #2987537: Custom menu link entity type should not declare "bundle" entity key
Pipeline #284206 passed with warnings
Pipeline: drupal

#284247

    Pipeline: drupal

    #284243

      Pipeline: drupal

      #284235

        +6
        ......@@ -537,6 +537,8 @@ public function testRead(): void {
        // Test that user gets logged out when hitting non-jsonapi route.
        $this->drupalGet('/some/normal/route');
        $this->assertFalse($this->drupalUserIsLoggedIn($this->userCanViewProfiles));
        $this->assertSession()->statusCodeEquals(503);
        $this->assertSession()->responseContains('Site under maintenance');
        $this->container->get('state')->set('system.maintenance_mode', FALSE);
        $this->drupalResetSession();
        ......
        ......@@ -5,9 +5,7 @@
        use Drupal\Core\Session\AccountInterface;
        use Drupal\Core\Site\MaintenanceModeEvents;
        use Drupal\Core\Site\MaintenanceModeInterface;
        use Drupal\Core\Url;
        use Symfony\Component\EventDispatcher\EventSubscriberInterface;
        use Symfony\Component\HttpFoundation\RedirectResponse;
        use Symfony\Component\HttpKernel\Event\RequestEvent;
        /**
        ......@@ -52,10 +50,6 @@ public function onMaintenanceModeRequest(RequestEvent $event) {
        // If the site is offline, log out unprivileged users.
        if ($this->account->isAuthenticated()) {
        user_logout();
        // Redirect to homepage.
        $event->setResponse(
        new RedirectResponse(Url::fromRoute('<front>')->toString())
        );
        }
        }
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment