diff --git a/core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php b/core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php
index c00509f..59ab13d 100644
--- a/core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php
+++ b/core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php
@@ -101,7 +101,7 @@ public function getLangcode(Request $request = NULL) {
     $langcode = NULL;
 
     // User preference (only for administrators).
-    if ($this->currentUser->hasPermission('access administration pages') && ($preferred_admin_langcode = $this->currentUser->getPreferredAdminLangcode(FALSE)) && $this->isAdminPath($request)) {
+    if ($this->currentUser->hasPermission('access administration pages') && ($preferred_admin_langcode = $this->currentUser->getPreferredAdminLangcode(FALSE))) {
       $langcode = $preferred_admin_langcode;
     }
 
@@ -109,41 +109,4 @@ public function getLangcode(Request $request = NULL) {
     return $langcode;
   }
 
-  /**
-   * Checks whether the given path is an administrative one.
-   *
-   * @param \Symfony\Component\HttpFoundation\Request $request
-   *   The request object.
-   *
-   * @return bool
-   *   TRUE if the path is administrative, FALSE otherwise.
-   */
-  protected function isAdminPath(Request $request) {
-    $result = FALSE;
-    if ($request && $this->adminContext) {
-      // If called from an event subscriber, the request may not have the route
-      // object yet (it is still being built), so use the router to look up
-      // based on the path.
-      $route_match = $this->stackedRouteMatch->getRouteMatchFromRequest($request);
-      if ($route_match && !$route_object = $route_match->getRouteObject()) {
-        try {
-          // Process the path as an inbound path. This will remove any language
-          // prefixes and other path components that inbound processing would
-          // clear out, so we can attempt to load the route clearly.
-          $path = $this->pathProcessorManager->processInbound(urldecode(rtrim($request->getPathInfo(), '/')), $request);
-          $attributes = $this->router->match($path);
-        }
-        catch (ResourceNotFoundException $e) {
-          return FALSE;
-        }
-        catch (AccessDeniedHttpException $e) {
-          return FALSE;
-        }
-        $route_object = $attributes[RouteObjectInterface::ROUTE_OBJECT];
-      }
-      $result = $this->adminContext->isAdminRoute($route_object);
-    }
-    return $result;
-  }
-
 }
