-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
When the page has a <base href="/something/"> tag, SVG IRIs that are just fragments don't work. The only such IRI in this project is
'clip-path': Ember.computed('graph.contentClipPathId', function(){
var clipPathId = this.get('graph.contentClipPathId');
return `url('#${clipPathId}')`;
}),which emits something like
<g clip-path="url(#ember718-content-mask)">Unfortunately, the only workaround is to use the absolute URL of the page. Thus, I suggest something like
'clip-path': Ember.computed('graph.contentClipPathId', function(){
var clipPathId = this.get('graph.contentClipPathId');
const currentURL = document.location.href.replace(/#.+$/, '');
return `url('${currentURL}#${clipPathId}')`;
}),which would in turn emit something like
<g clip-path="url(https://myapp.example.com/some/route#ember718-content-mask)">/cc @jayphelps, who has some experience with these issues.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels