From 28e20f56c8bf2deebc981a620fd34eee51ad9ea4 Mon Sep 17 00:00:00 2001 From: Alex Dong Date: Fri, 15 Sep 2023 22:59:12 +0700 Subject: [PATCH] Support url outside --- Helper/Data.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Helper/Data.php b/Helper/Data.php index c5f00ee..acd7f3b 100755 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -123,6 +123,7 @@ public function getUrlKey($key='', $suffix=true) public function getBrandUrl($key='', $suffix=true) { + if (filter_var($key, FILTER_VALIDATE_URL)) return $key; return $this->_storeManager->getStore()->getBaseUrl() . $this->getUrlKey($key, $suffix); }