I have a view in drupal 7 with no contextual filters at all set.
Let's say it is a simple list of nodes of the type "item" and that the url is http://example.com/listofitems
I also have pathauto patterns set for the individual nodes. So if an item titled "my item" is created the url would be http://example.com/listofitems/my-item
This is important to know because I don't want to set another view for the path listofitems/%
.
Given that no view or URL alias exists for listofitems/foo
I expected that this URL would give a 404 error: http://example.com/listofitems/foo
Instead it shows the full view with no errors. This is confusing and bad for SEO. If a bot hits http://example.com/listofitems/foo/bar/foo/bar/foo/bar/blahblahblahblah they should get a 404 message. Or better yet, they could get a 301 redirect to the main view url. In any case, they should not be allowed to stay on the non-existant URL and see the view with no errors.
How can I accomplish this? Is there a trick I'm missing or a reason that this is the default behavior?