Skip to content
Snippets Groups Projects

Issue #3450577 by Martygraphie: Pagination removes the bad link from the current page

1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
+ 0
4
@@ -517,8 +517,4 @@ function ui_suite_dsfr_preprocess_pager(array &$variables): void {
return;
}
$variables["items"]["pages"] = LinksSettingType::normalize($variables["items"]["pages"]);
// Not mandatory to remove the current URL, because aria-current is enough.
// But let's do it anyway, for safert.
$current = $variables["current"] - 1;
unset($variables["items"]["pages"][$current]["url"]);
}
Loading