Skip to content

[Bug?]: Missing parameter for route when using glob pattern #6319

@richcatt

Description

@richcatt

What's not working?

I'm trying to change a couple of routes to use the glob param pattern, in order to work with nested items, e.g.:

<Route path='/category/{categoryIds...}/edit' page={CategoryEditCategoryPage} name='editCategory' />

This working fine when I manually enter the URL, but I get an error when creating navigate links, e.g.:

<Link to={routes.editCategory({ 'categoryIds...': category.id })}>Edit</Link>

image

How do we reproduce the bug?

https://gitpod.io#snapshot/f051b363-f867-42e0-8153-8c300d52439e

Navigate to categories list - https://8910-redwoodjs-gitpodstarter-im8r4cjqmdr.ws-eu63.gitpod.io/categories

What's your environment? (If it applies)

System:
    OS: Linux 5.15 Ubuntu 20.04.4 LTS (Focal Fossa)
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.13.2 - /tmp/xfs-12e552be/node
    Yarn: 3.2.0 - /tmp/xfs-12e552be/yarn
  Databases:
    SQLite: 3.31.1 - /usr/bin/sqlite3
  npmPackages:
    @redwoodjs/core: 2.2.3 => 2.2.3

Are you interested in working on this?

  • I'm interested in working on this

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions