diff --git a/core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php b/core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php index 7d949ff..d4ba48c 100644 --- a/core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php +++ b/core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php @@ -19,7 +19,7 @@ * @see \Drupal\Core\Cache\CacheableMetadata * @see \Drupal\Core\Cache\CacheableResponseTrait */ -class CacheableRedirectResponse extends RedirectResponse implements CacheableResponseInterface { +class CacheableRedirectResponse extends RedirectResponse implements CacheableRedirectResponseInterface { use CacheableResponseTrait; diff --git a/core/lib/Drupal/Core/Cache/CacheableRedirectResponseInterface.php b/core/lib/Drupal/Core/Cache/CacheableRedirectResponseInterface.php new file mode 100644 index 0000000..a35842a --- /dev/null +++ b/core/lib/Drupal/Core/Cache/CacheableRedirectResponseInterface.php @@ -0,0 +1,18 @@ +url('locale.translate_status', [], ['absolute' => TRUE])); + return $thus->redirect('locale.translate_status'); } /** diff --git a/core/modules/system/system.routing.yml b/core/modules/system/system.routing.yml index e6108ac..8aa239e 100644 --- a/core/modules/system/system.routing.yml +++ b/core/modules/system/system.routing.yml @@ -132,6 +132,8 @@ system.admin_compact_page: defaults: _controller: 'Drupal\system\Controller\SystemController::compactPage' mode: 'off' + options: + no_cache: TRUE requirements: _permission: 'access administration pages' diff --git a/core/modules/user/user.routing.yml b/core/modules/user/user.routing.yml index 8c00c45..fabcb74 100644 --- a/core/modules/user/user.routing.yml +++ b/core/modules/user/user.routing.yml @@ -140,6 +140,8 @@ user.cancel_confirm: hashed_pass: '' requirements: _entity_access: 'user.delete' + options: + no_cache: TRUE user.reset: path: '/user/reset/{uid}/{timestamp}/{hash}'