1

The stock Content view in a Drupal 9 install is returning a 404 when accessing /admin/content.

We added two contextual filters to this View that are ignored if you are an Admin (passes "all" value).

If you navigate to /admin/content/node, you get the View. But admin/content is a 404, and other sites we have work fine (no filters on the View). I see someone changed the path in the View, but changing it back causes it to ping pong between 404 and the View. Is there something else that could cause this?

enter image description here

2
  • 1
    Once it's been customized by adding filters and changing the path, it's not really the "stock" content view. Returning a 404 instead of access denied is an option buried in the contextual filter settings; check to see if that's set. Commented Jul 20, 2022 at 14:06
  • Its a default value that passes 'all' if nothing was found. In fact, the arguments don't trigger xdebug on the admin/content path. So something else must be wrong.
    – Kevin
    Commented Jul 20, 2022 at 14:14

1 Answer 1

1

Figured it out - I needed to set 'skip default argument when constructing View URL' on both filters. Now it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.