Skip to content

bug: links to packages without scope on org pages are broken #1121

@gameroman

Description

@gameroman

Description

For example, on the babel org page rollup-plugin-babel links to https://npmx.dev/package/babel/rollup-plugin-babel instead of https://npmx.dev/package/rollup-plugin-babel

My analysis

Although packageRoute in Card.vue

:to="packageRoute(result.package.name)"

correctly returns

{ name: 'package', params: { org: null, name: 'rollup-plugin-babel' } }

because the org page is org/[org].vue where org is a route param

const orgName = computed(() => route.params.org)

it looks like it treats it as an org for package/[[org]]/[name].vue for some reason

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Design

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions