Skip to content

Commit

Permalink
add embed flag to saved object url as well (#62926)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Apr 9, 2020
1 parent 274cb80 commit 82e048a
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 82e048a

Please sign in to comment.