keystone icon indicating copy to clipboard operation
keystone copied to clipboard

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

Open glennflanagan opened this issue 3 years ago • 0 comments

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

glennflanagan avatar Sep 22 '22 14:09 glennflanagan