Search code examples
ember-cli

How do I remove the base tag?


SVGs are broken, and the solution is to remove the base tag and append the urls manually, but I can't find the base tag. Here is the issue in question: https://github.com/ember-cli/ember-cli/issues/2633


Solution

  • It's in config/environment.js in two spots:

     var ENV = {
        modulePrefix: 'projectname',
        environment: environment,
        baseURL: '/',
    
      ...
    
      if (environment === 'test') {
        // Testem prefers this...
        ENV.baseURL = '/';
        ENV.locationType = 'none';
    

    Delete those TWO lines and make sure that all of your relative URLs are correct.