add embed flag to saved object url as well (#62926)

This commit is contained in:
Joe Reuter 2020-04-09 09:28:44 +02:00 committed by GitHub
parent 274cb805e1
commit 82e048a5fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
@ -180,6 +180,11 @@ export class UrlPanelContent extends Component<Props, State> {
},
}),
});
if (this.props.isEmbedded) {
formattedUrl = this.makeUrlEmbeddable(url);
}
return formattedUrl;
};
private getSnapshotUrl = () => {