A share link opens the app as it runs on this canvas, for the people you allow. Use it when a teammate or a stakeholder should click through a change before it becomes a pull request.
Each canvas has one share link, and it does not expire. It is live: a visitor sees every change the agent has built here by the time they open it.
Before you start
A canvas whose Portal shows your app, see Add a Portal to the canvas.
Steps
Click Share in the canvas header. The Share link popover shows the link's address and who can open it.
Pick who can open the link in the menu under the address. The choice is saved at once, and anyone in your organization who can open the canvas can change it.
Only members of followed by your organization's name: signed-in members of your organization. A new canvas starts with this.
Anyone with the link: no Modeinspect account needed. A canvas that already had a preview link starts with this, unless your organization has public links turned off. Preview links you sent before no longer open, so send this link instead.
Click Copy. The toast reads "Link copied". Open opens the link in a new tab.
Send the link. The visitor lands on your app's start page and can click through it.
Share the page you are on
The same link can open on one page of the app, for the same people.
In Build Mode, go to the page and click the link icon at the left end of the address bar, Copy link to this page. The toast reads "Page link copied", or "Link copied" on the app's start page. The preview window that Open preview opens has the same button.

On the canvas, select the Portal. The design panel shows Preview link with the path of the page the Portal is on. Click Copy on that row.

What a visitor sees
With Anyone with the link, the app opens straight away.
With Only members of, a visitor who is not signed in sees "Sign in to view this preview" and a Sign in button. After signing in, they land on the link. Someone signed in who is not a member of your organization sees "You don't have access".
Warning: Changing who can open the link changes it for every copy you have sent, page links included. Switch back to Only members of to close a link you made public.
If it does not work
The popover says "Public links are disabled for this organization." and Anyone with the link is greyed out: your organization has public links turned off. The link works for members only. Contact support to have public links turned on.
The toast reads "Couldn't load the link. Try again.": open Share again, or click the page link button again.
The toast reads "Couldn't change who can open the link.": the setting stayed as it was. Pick it again.
The visitor sees "This link doesn't exist": the address was cut off or mistyped, or the canvas was deleted. If the canvas still exists, copy the link again from Share and send the whole address.
The visitor sees "Preview unavailable": they opened an older kind of link, with
preview_token=in the address, so send them the share link. If the link was switched to Only members of while they had it open, they need to reload the page.
