Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Unable to navigate to modal stack initial route, within (group) directory #831

@leggomuhgreggo

Description

@leggomuhgreggo

Which package manager are you using? (Yarn is recommended)

Yarn

Summary

This folder structure, using the group syntax doesn't seem to support linking to the index initial route of the modal stack

app
| -- (modal-stack) <-- links here don't work
|    |-- _layout.tsx
|    |-- modal-screen-1.tsx
|    |-- modal-screen-2.tsx
| -- _layout.tsx
| -- index.tsx
Screen Recording
Simulator.Screen.Recording.-.iPhone.14.-.2023-08-05.at.15.01.25.mp4

Group Folder

  • <Link href="/(modal-stack)/">(modal-stack)</Link>
  • <Link href="/(modal-stack)/modal-screen-1">modal-screen-1</Link>

Normal Path Folder

  • <Link href="/modal-stack/">modal-stack</Link>
  • <Link href="/modal-stack/modal-screen-1">modal-screen-1</Link>

Minimal reproducible example

https://github.com/leggomuhgreggo/nav-testing/tree/expo-router-repro/modal-stack-grouped

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