Skip to content

fix(showcase): Capability Map internal links resolve under the page route #2823

Description

@yinlianghui

Summary

Internal links in the Showcase Capability Map use relative paths and resolve underneath the current page route, leading to “Page not found”.

Found incidentally during the #2678 UI follow-up on framework baseline 98874656ffc50ce1531af52346228ffcdda73fba.

Reproduction

  1. Open the Showcase Capability Map.
  2. Click the Projects (backbone) capability link.
  3. Repeat after returning to the Capability Map.

Observed in 2/2 attempts:

  • Expected destination: /apps/com.objectstack.showcase/showcase_project
  • Actual destination: a nested path under the current /page/... route, ending in /page/apps/com.objectstack.showcase/showcase_project
  • Result: “Page not found”

Likely cause and scope

examples/app-showcase/src/ui/pages/capability-map.page.ts supplies relative internal paths such as apps/... and docs/..., and the shared card renders them directly as anchor href values.

The tested Projects (backbone) link is confirmed broken. Other internal apps/... and docs/... entries appear to share the same path-construction risk and should be audited.

Suggested regression coverage

Add a navigation test that enumerates all internal Capability Map links and asserts that each resolves from the application root to a valid page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions