I am running Drupal 7 and have created several views. I am noticing a problem. If one adds a node ID in the URL, it returns the views page for that content type instead of 404 error.
Example:
http://www.muktware.com/articles/3583
where 3583 is the node ID of this content.
http://www.muktware.com/3583/get-gnome-2-panel-ubuntu-1204
I want that when someone enter this kind of URL "http://www.muktware.com/articles/3583" it should return to page not found or 404 error page.
Comments
Comment #1
merlinofchaos commentedIn your contextual filter configuration, there is a validation option. There's a validator to ensure that the node exists (and you can even choose which node type it must be).
Comment #2
arnieswap commentedComment #3
arnieswap commentedIs there any documentation how to use contextual filter? I can'rt figure out certain things.
Should I use Global Null?
What should be selected from
1. When the filter value is NOT in the URL
2. When the filter value IS in the URL or a default is provided
3. What validation criterion to be used?
Thanks in advance.
Comment #4
mustanggb commentedClosing this as outdated, feel free to re-open if you're still having problems.