Skip to content

Lists with ui.isHidden resolving to true - route can still be accessed in the admin UI #7948

@glennflanagan

Description

@glennflanagan

Reproduction steps

  1. Create List with ui.isHidden function set to resolve to true. e.g.:
const User = list({
  ui: {
    isHidden: () => true,
  },
  fields: ...
  1. See the list is hidden from the dasboard and navigation
  2. Enter the route to the hidden list into the browser address bar e.g. http://localhost:3000/users and observe that you are directed to the list page.

Screenshot 2022-09-22 at 14 54 45

Expected behaviour

Accessing the route of a list with ui.isHidden resolving to true should redirect the user back to the Dashboard

Metadata

Metadata

Assignees

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