Skip to content

Commit

Permalink
add embed flag to saved object url as well (#62926) (#63089)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
flash1293 and elasticmachine committed Apr 13, 2020
1 parent d3ab8dd commit e68fe90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plugins/share/public/components/url_panel_content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class UrlPanelContent extends Component<Props, State> {
// Get the application route, after the hash, and remove the #.
const parsedAppUrl = parseUrl(parsedUrl.hash.slice(1), true);

return formatUrl({
let formattedUrl = formatUrl({
protocol: parsedUrl.protocol,
auth: parsedUrl.auth,
host: parsedUrl.host,
Expand All @@ -180,6 +180,11 @@ export class UrlPanelContent extends Component<Props, State> {
},
}),
});
if (this.props.isEmbedded) {
formattedUrl = this.makeUrlEmbeddable(url);
}

return formattedUrl;
};

private getSnapshotUrl = () => {
Expand Down

0 comments on commit e68fe90

Please sign in to comment.