Quantcast
Channel: Question and Answer » views-contextual-filters
Viewing all articles
Browse latest Browse all 57

Why do my contextual filters break when no value is available?

$
0
0

I have a contextual filter in a view, to create a block. I am using the ‘Provide default value’ option and getting the value from the URL’s 2nd path component.

Everything works fine until I navigate to a page without a 2nd path component.

If I navigate between stories everything works fine even if the 2nd component doesn’t work for my filter and leaves the block empty. When I got to a page that allows content based on the filter after that the content will be there.

However, if I go to the home page or /admin where there is no 2nd component the view will be blank until I clear the cache. I have no caching allowed in my view and have turned caching off in the admin configuration of views.

What is causing my view to fail?


Viewing all articles
Browse latest Browse all 57

Trending Articles