Skip to content

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented May 26, 2021

Fixes #5685.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels May 26, 2021
@archmoj archmoj added this to the NEXT milestone May 26, 2021
var context = gd._context;
var baseUrl = context._exportedPlot ? '' : (context._baseUrl || '');
return 'url(\'' + baseUrl + '#' + localId + '\')';
return 'url(' + baseUrl + '#' + localId + ')';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per #5685 (comment) I think it's safer to keep the quotes when baseUrl is truthy (noting that the _exportedPlot condition appropriately clears it vs context._baseUrl).

@archmoj archmoj requested review from alexcjohnson and antoinerg May 26, 2021 16:50
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 LGTM!

@archmoj archmoj merged commit 04b45eb into master May 26, 2021
@archmoj archmoj deleted the no-quote-around-url branch May 26, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clip-path misinterpreted by some programs after export

2 participants