Skip to content

fix: sharing different URLs for presenter and viewers always fails as malformed - #40

Merged
GuiLeme merged 1 commit into
bigbluebutton:v0.1.xfrom
gustavotrott:fix/separate-presenter-viewer-urls
Oct 30, 2026
Merged

GuiLeme merged 1 commit into
bigbluebutton:v0.1.xfrom
gustavotrott:fix/separate-presenter-viewer-urls

Conversation

@gustavotrott

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes sharing different URLs for the presenter and the viewers.

Both URL inputs in the share modal were rendered with name="link" and id="link-receiver". With "Same URL for presenter and viewers" unchecked, handleSendLinkToIframe reads form.link (a RadioNodeList whose value is '' when it holds text inputs) and form.viewerLink (which did not exist), so every submission failed with "Link is malformed, please insert a valid one".

How to reproduce

  1. Join a meeting as presenter.
  2. Open the Media Area and click "Share Website Link as Content".
  3. Uncheck "Same URL for presenter and viewers".
  4. Fill "Presenter URL" with a valid link (e.g. https://pt.wikipedia.org) and, optionally, "Viewer URL" with another one (e.g. https://es.wikipedia.org).
  5. Click "Share as content".

Expected: the presenter sees the presenter URL and the viewers see the viewer URL.
Actual: the modal shows "Error: Link is malformed, please insert a valid one" and nothing is shared, whatever URLs are typed.

Fix

Each input now gets its own name (link / viewerLink, the names the submit handler already expects) and its own id. The duplicated id also made the viewer URL label focus the presenter URL input; that is fixed as well.

Closes Issue(s)

Closes #

Motivation

Only the "same URL for everyone" mode was usable; the presenter/viewer URL split was broken.

… malformed

Both URL inputs were rendered with name="link" and the same id, so with
"Same URL for presenter and viewers" unchecked the submit handler read
form.link as a RadioNodeList (empty value) and form.viewerLink as
undefined, rejecting every link. Give each input its own name and id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtQ5Bqwqnjb3mwv6RirFmg
@gustavotrott
gustavotrott requested a review from GuiLeme October 23, 2026 19:38

@GuiLeme GuiLeme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Note for future evaluations of this PR: this PR alone doesn't work for the viewer, I had to merge upstream/v0.1.x into this branch to make it work (what probably fixed it was the recent changes to make the Generic link more reactive - #38).

@GuiLeme
GuiLeme merged commit edaebcb into bigbluebutton:v0.1.x Oct 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants