Skip to content

Commit

Permalink
put params into short url instead of behind it (#58846)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Mar 2, 2020
1 parent cbbc963 commit a6b166b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/plugins/share/public/components/url_panel_content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ export class UrlPanelContent extends Component<Props, State> {
};

private getSnapshotUrl = () => {
return this.props.shareableUrl || window.location.href;
let url = this.props.shareableUrl || window.location.href;
if (this.props.isEmbedded) {
url = this.makeUrlEmbeddable(url);
}
return url;
};

private makeUrlEmbeddable = (url: string) => {
Expand All @@ -200,8 +204,7 @@ export class UrlPanelContent extends Component<Props, State> {
return;
}

const embeddableUrl = this.makeUrlEmbeddable(url);
return `<iframe src="${embeddableUrl}" height="600" width="800"></iframe>`;
return `<iframe src="${url}" height="600" width="800"></iframe>`;
};

private setUrl = () => {
Expand Down

0 comments on commit a6b166b

Please sign in to comment.