ember-cli / ember-cli/broccoli-asset-rev

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

Open
#131 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
86
Forks
79
PR merge metrics
No merged PRs in 30d

Description

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...

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the asset lookup with `ember serve` using a CSS URL such as `assets/images/image.svg`, then trace where the second `assets` prefix is introduced. Done means the unprefixed CSS URL resolves to `/assets/images/image.svg` without requiring a leading slash; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.