Quantcast
Viewing all articles
Browse latest Browse all 293248

[perf] Shortcut reruns routing

Problem/Motivation

In shortcut_preprocess_page

<?php
     $link
= current_path();
    if (!(
$url = \Drupal::pathValidator()->getUrlIfValid($link))) {
     
// Bail out early if we couldn't find a matching route.
     
return;
    }
?>

because that can happen how?

Proposed resolution

Replace $url with the route match. Trivial solution, instant win!


Viewing all articles
Browse latest Browse all 293248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>