Skip to content
Snippets Groups Projects

ISTWCMS-7266: Refactor link handling logic in UwCblLinks block.

Merged Igor Biki requested to merge feature/ISTWCMS-7266-ibiki-links_and_titles into 1.1.x
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -969,6 +969,13 @@ class UwCblLinks extends BlockBase implements ContainerFactoryPluginInterface {
}
else {
$canonical = $path->getInternalPath();
// Detects if there is a fragment or query string.
$fragment_query = preg_replace('/^[^#?]+/', '', $path->toString());
if (!empty($fragment_query)) {
$canonical .= $fragment_query;
}
}
if (!str_starts_with($canonical, '/')) {
Loading