Skip to content

studio: the app preview "Open" link drops the console base path and lands on a 404 #39348

Backlog

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

What happens

In Studio, open an app (Apps → an app → Preview tab) and click Open (打开) in the preview toolbar. The new tab goes to http://localhost:3780/apps/<app>/ and the server answers 404 {"success":false,"error":{"code":"ENDPOINT_NOT_FOUND","message":"Not found"}}.

The console is served under /_console, so the working address is /_console/apps/<app>.

Where

ui/packages/app-shell/src/views/metadata-admin/previews/AppPreview.tsx (around line 360 on main 23e859a):

const baseRuntimeUrl = appName ? `/apps/${encodeURIComponent(appName)}/` : null;
// …
<a href={baseRuntimeUrl} target="_blank" rel="noreferrer">

A raw <a href> bypasses the router basename. Every other in-app link to /apps/… goes through navigate / Link, which add it.

Repro

  1. examples/app-showcase: objectstack dev --ui --seed-admin.
  2. Studio → create a package and an app (or use any app) → open it → Preview → Open.

Expected

The link opens the running app at <basename>/apps/<app>. A test should pin the href under a non-root basename.

Activity

  1. added
    bug
    area:studio
    on Dec 3, 2026
  2. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · domain:ui · Bug · p2 · pm:queue · size XS, touched 2026-12-03T15:12Z. Rationale: area:studio is not a North Star area; building in Studio is area:build ③. The app preview's Open link drops the /_console base path and lands on a 404, so the thing cannot be done.
    Grade: area:build · Bug · p2 · every Studio user previewing an app · measured (local console, the 404 envelope).

  3. added
    domain:ui
    pm:queue
    priority:p2
    and removed
    area:studio
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:buildbugdomain:uipm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions