Make sharing public links generate site viewer links
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
4a1df4ee6a
commit
5888af4331
@ -72,9 +72,9 @@ export class SelectorComponent implements OnInit {
|
||||
}
|
||||
|
||||
getShareLink(level) {
|
||||
this.api.get(`/share/page/${this.node.id}/link/${level}?public=${this.publicLink}`).subscribe(result => {
|
||||
this.api.get(`/share/page/${this.node.id}/link/${level}${this.publicLink ? '?public=true' : ''}`).subscribe(result => {
|
||||
if ( this.publicLink ) {
|
||||
this.generatedLink = `${window.location.origin}${environment.appBase}editor;id=${this.node.id}`;
|
||||
this.generatedLink = `${window.location.origin}${environment.appBase}editor/site;id=${this.node.id}`;
|
||||
this.ngOnInit();
|
||||
} else {
|
||||
this.generatedLink = result.data.link;
|
||||
|
Loading…
Reference in New Issue
Block a user