Hi, I have a view with a page display in a url, let's say "section1". This view has no arguments. Then I have another pages in urls like "section1/page1" and "section1/page2". The problem I'm seeing is that if I write a wrong url like "section1/sdfsdfd" I'm not getting a page not found page because the view is taking it as an argument and display the default result. How can I dissallow arguments from a view?

Thanks,

Matias.

Comments

dawehner’s picture

Status: Active » Fixed

you can use php argument validation and return FALSE when it should not be possible.
It is better to write a argument validation plugin.

figover’s picture

merlinofchaos’s picture

Actually it's easier than that. Add the Global: NULL argument. It can automatically validate that only NULL (no argument) is acceptable without writing any code.

mburak’s picture

Right, I did that. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.