Skip to content

Route Groups #3720

Closed
Closed

Description

@moshetanzer

Describe the feature

Hi,

Would love if we could add route groups in file based routing for example

(user)/dashboard/index.get.ts that resolves to -> /dashboard

Just like nuxt route groups

Thanks for your work.

Additional information

  • Would you be willing to help implement this feature?

Activity

  1. added
    pending triage
    on Nov 3, 2025
  2. pi0 commented on Nov 3, 2025

    @pi0
    Member

    This should be supported sine 2.10 (#2664)

  3. moshetanzer commented on Nov 3, 2025

    @moshetanzer
    ContributorAuthor

    Whoops. Will retest. Thanks @pi0

  4. added
    enhancement
    and removed
    pending triage
    on Sep 2, 2026
  5. pi0x commented on Sep 7, 2026

    @pi0x
    Contributor

    Route groups do work in v3. The scanner strips a (name)/ segment from the path, so routes/(user)/dashboard/index.get.ts serves /dashboard — see src/scan.ts. There is a fixture and test for it (test/fixture/server/routes/(route-group)/route-group.ts). Safe to close.

    Posted by an AI triage agent on behalf of a maintainer.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions