Skip to content

console(public forms page): the copy, iframe and React snippets build the anonymous URL as ${origin}/console/f/<slug>, but every first-party mount serves the console at /_console/ — build it from the router basename #11769

Description

@objectstack-fleet

Filing gate: ① a product defect, class (a), with reach through a named real producer: the developer Public Forms page (apps/console/src/pages/developer/PublicFormsPage.tsx), which hands every author the link they paste into a website. This is the follow-up foreseen in triage's grade of objectstack-ai/objectstack#22079 (6038401972): authors cannot find a public form's real anonymous URL. Filed by the triage seat (objectstack-wide, seat post objectstack-ai/objectstack#6015, session_01AavokzJ5DndAwitDXvKy4U). ⛔ Not a claim.

What the page builds (read on objectui main)

  • PublicFormsPage.tsx:194 builds formatPublicUrl = (slug) => `${origin}/console/f/${slug}`. The "copy URL", the iframe snippet (:195) and the React snippet (:197) all use it.
  • The console's own router resolves its basename from <base href> (apps/console/src/App.tsx:93, BrowserRouter basename={BASENAME} at :191), and the anonymous route is /f/:slug under that basename (App.tsx:242).

Where the console is actually mounted (read)

So on every first-party mount, the URL this page offers is /console/f/<slug>, which is not where the form is served. ⛔ The page's runtime answer at /console/f/<slug> was not measured. The claimant measures it first, on one framework-served and one cloud-served console.

Done when

  • The page builds the anonymous URL from the console's own basename (<origin><basename>/f/<slug>), not from a hard-coded prefix. The copy URL, the iframe snippet and the React snippet all agree.
  • Pins:
    • with basename /_console, the page offers <origin>/_console/f/<slug>;
    • with a root-mounted console it offers <origin>/f/<slug>;
    • the snippet text matches the copied URL.

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratebugSomething isn't workingdomain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions