Skip to content

Package name and url route are conflicted #392

@shuuji3

Description

@shuuji3

There is the settings package in npm.

When I open https://npmx.dev/settings, it navigates to the settings page, but when opening settings package from the search result, it enters the infinite loading loop.

screen shot of 'settings' search results screen shot of loading placeholder of 'settings' package

We should use some prefix not allowed in the npm package name for special pages, for example, https://npmx.dev/_settings or something. According to the npm docs (https://docs.npmjs.com/cli/v11/configuring-npm/package-json/#name), package names cannot start with _ or ., so this will be a safe path while keeping the clean package url. Another option is to separate the namespace (for example, https://npmx.dev/p/settings).

Edit: see the following discussion and patak's comment.

npmjs.com uses the /package/ prefix like https://www.npmjs.com/package/settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions