From f9e9c8101e770126c151d98356de689279f64a9a Mon Sep 17 00:00:00 2001 From: Dag Date: Fri, 3 Jan 2025 08:41:55 +0100 Subject: [PATCH] Fix 257 (#4393) * fix(tldrtech): trim duplicate leading slashes * fix --- bridges/TldrTechBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/TldrTechBridge.php b/bridges/TldrTechBridge.php index 6c96dff7..222cd49e 100644 --- a/bridges/TldrTechBridge.php +++ b/bridges/TldrTechBridge.php @@ -56,7 +56,8 @@ class TldrTechBridge extends BridgeAbstract if ($child->tag != 'a') { continue; } - $this->extractItem(Url::fromString(self::URI . $child->href)); + $itemUrl = Url::fromString(self::URI . ltrim($child->href, '/')); + $this->extractItem($itemUrl); if (count($this->items) >= $limit) { break; }