ulisesrmzroche
ulisesrmzroche

Reputation: 145

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

Upvotes: 3

Views: 970

Answers (2)

ming_codes
ming_codes

Reputation: 2922

Alternative solution is to prepend current pathname to the URL ref.

`url(${location.pathname}#${id})`

However, this breaks on route transition if the pathname is not bound. You can fix this by binding the Router's url property, but this is getting into the hashish area.

var view = this;
var container = view.container;

container.lookup('router:main').get('url'); // Bind this guy

Upvotes: 0

Jason
Jason

Reputation: 3179

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.

Upvotes: 2

Related Questions