Skip to content

Dynamically added assets prefix in the image URL - Ember-CLI #131

@mockey-jockey

Description

@mockey-jockey

I am trying to load the app by using ember serve. Some of the images are not found error getting.
In CSS :

background-image: url(assets/images/image.svg);

its redirected to

http://localhost:4200/assets/assets/images/image.svg 404 (Not Found)

because in this URL two assets name added that's why the image is not found, I don't know where this asset added.

when adding '/' in the prefix of URL am able to see the image in the app.

background-image: url(/assets/images/image.svg);

its redirected to

http://localhost:4200/assets/images/image.svg - working fine

How to avoid two assets name without using '/' as a prefix for assets. Kindly help anyone pls...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions