0

I have an image in my public folder (public/images/image.png) which is inside of a Vuetify v-img tag inside of a component (components/component.vue), with src="images/image.png". This works fine when displaying a page that is not nested in a folder, for example "pages/index.vue", but when I try display the same component in nested page "pages/something/index.vue" the component loads but not the image.

1 Answers1

-1

Does adding a slash as suggested in this answer solve it?

Change src="images/image.png" to src="/images/image.png"

Felix Eklöf
  • 3,253
  • 2
  • 10
  • 27