adopted-ember-addons / adopted-ember-addons/ember-leaflet

Icons broken when deployment has prepend option set

Aperta
#113 8 commenti 2 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
JavaScript
Stelle
210
Fork
88
Merge medio
2g 21h
PR unite (30g)
16

Descrizione

Icons (eg. marker-icon.png) are broken if the production deployment is served by a URL containing a path, like: http://mydomain.com/myapp.

I'm using ember-cli 2.8, ember-leaflet 3.0.2 and my ember-cli-build.js has: `prepend: "//mydomain.com/myapp/"`.

Inspecting the rendered HTML, I have noticed that the path for that icon is just '/assets/images//marker-icon.png' (please note also the double slash `//`).

If I manually fix it by prepending my URL and by removing the double slash (--> `//mydomain/myapp/assets/images/marker-icon.png`), it works.

Is this a bug or am I missing something?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.