Skip to content

Commit

Permalink
Support url outside
Browse files Browse the repository at this point in the history
  • Loading branch information
magiccart committed Sep 15, 2023
1 parent 480d326 commit 28e20f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 28e20f5

Please sign in to comment.