Dynamic asset url

I have issues trying to create a dynamic secondary nav. I would like to add a set of social media icons dynamically from the secondary nav. But for the icons of these social media platforms, they are put in the asset/img/icons folder and I would like to construct a URL like

    • What’s your URL? Its still being worked in local

    • What version of Ghost are you using? Ghost-CLI version: 1.16.0
      Ghost version: 4.3.2
      And

    • How was Ghost installed and configured?
      using ghost-cli

    • What Node version, database, OS & browser are you using?
      14.15.0

    • What errors or information do you see in the console?
      [index.hbs] path.match is not a function
      at getAssetUrl (ghostblog/versions/4.3.2/core/frontend/meta/asset_url.js:16:14)
      at Object.asset (ghostblog/versions/4.3.2/core/frontend/helpers/asset.js:19:9)

    • What steps could someone else take to reproduce the issue you’re having?
      Use concat with asset helper