Skip to content
Snippets Groups Projects

Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers

Open Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers
2 unresolved threads
Open Ben Mullins requested to merge issue/drupal-2845319:2845319-the-highlighting-of into 9.3.x
2 unresolved threads
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • 3c321ab4
    SA-CORE-2022-003 by ciss, xjm, larowlan, benjy, mcdruid, jenlampton,... · 3c321ab4
    Jess authored
    SA-CORE-2022-003 by ciss, xjm, larowlan, benjy, mcdruid, jenlampton, quicksketch, Fabianx, effulgentsia
    
    (cherry picked from commit 8fabbc61)
@@ -1217,7 +1217,7 @@ protected function handleInputElement($form_id, &$element, FormStateInterface &$
// #access=FALSE on an element usually allow access for some users, so forms
// submitted with self::submitForm() may bypass access restriction and be
// treated as high-privilege users instead.
$process_input = empty($element['#disabled']) && (($form_state->isProgrammed() && $form_state->isBypassingProgrammedAccessChecks()) || ($form_state->isProcessingInput() && (!isset($element['#access']) || $element['#access'])));
$process_input = empty($element['#disabled']) && ($element['#type'] !== 'value') && (($form_state->isProgrammed() && $form_state->isBypassingProgrammedAccessChecks()) || ($form_state->isProcessingInput() && (!isset($element['#access']) || $element['#access'])));
// Set the element's #value property.
if (!isset($element['#value']) && !array_key_exists('#value', $element)) {
Loading