# Correct path for custom icon local image assets in Ionic 5

**URL:** <https://forum.ionicframework.com/t/correct-path-for-custom-icon-local-image-assets-in-ionic-5/212598>\
**Category:** Ionic Vue\
**Created:** [July 16, 2021, 2:50pm UTC](https://forum.ionicframework.com/t/correct-path-for-custom-icon-local-image-assets-in-ionic-5/212598 "2021-07-16T14:50:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![metalaureate](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@metalaureate](https://forum.ionicframework.com/u/metalaureate)\
**Post date:** [July 16, 2021, 2:50pm UTC](https://forum.ionicframework.com/t/correct-path-for-custom-icon-local-image-assets-in-ionic-5/212598/1 "2021-07-16T14:50:42Z")

</div>

I know this has been asked before of previous versions of the platform, but I can’t get anything to work.

Goal: store app icon assets locally so they don’t take time to load

Problem: no local asset path works–in every case, the app tries to load the /index.html into the svg image tag. I.e. the `src` path is not preprocessed as an asset path.

For /img/ directory under /src/, I have tried the following, all of which try to load the index.html SPA, i.e. Ionic is not processing these paths as local asset paths at all.

```auto
 addIcons({
      'home1': '/assets/img/icon.svg',
      'home2': './assets/img/icon.svg',
      'home3': 'assets/img/icon.svg',
      'home4': '@/assets/img/icon.svg',
      'home5': '../assets/img/icon.svg',
      'home6': '../../assets/img/icon.svg',
    })

```

External paths do work (e.g. to CDN bucket).

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [July 16, 2021, 3:58pm UTC](https://forum.ionicframework.com/t/correct-path-for-custom-icon-local-image-assets-in-ionic-5/212598/2 "2021-07-16T15:58:40Z")

</div>

The path processing is done by the Vue CLI, not Ionic Framework. I recommend checking out this Vue CLI guide: [HTML and Static Assets | Vue CLI](https://cli.vuejs.org/guide/html-and-static-assets.html#static-assets-handling)

---

<div class="post-metadata">

**Author:** ![metalaureate](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@metalaureate](https://forum.ionicframework.com/u/metalaureate)\
**Post date:** [July 16, 2021, 7:53pm UTC](https://forum.ionicframework.com/t/correct-path-for-custom-icon-local-image-assets-in-ionic-5/212598/3 "2021-07-16T19:53:45Z")

</div>

Thank you, duh, yeah, that worked. `/assets/...` is the path but that folder is in `/public` above the `/src` level.
