Using baseUrl affects the path to my assets

I integrate the application ember-cliinside my main site, which will be available at urlhttp://host/faq/....ember...routes

So I added baseUrl: /faq/to my ember

configurations /environment.js

module.exports = function(environment) {
  var ENV = {
    modulePrefix: 'faq',
    environment: environment,
    baseURL: '/faq/',
    locationType: 'hash',

Problem . When developing in my environment ember-cli with ember servermy assets, such as ( SVG, FONTS and IMAGES ), give me NOT FOUNDNow.

For example : http://host/assets/images/bg.pnggives me the result not found, expected http://host/faq/assets/images/bg.png. Why is this happening?

+4
source share
2 answers

I had the same problem with this project: Ember-Material-Navigation

, baseUrl sass URL-.

$baseUrl: "/faq/";
@include font-face("Font Name", font-files($baseUrl + "/dir/font.ttf"));

, sass.

+2

, url : baseURL: '/'.

, URL- ember, rootURL Router (app/router.js): rootURL: '/faq/'

http://emberjs.com/guides/routing/#toc_specifying-a-root-url

+5

All Articles