Drupal 7 Views with 2 context filters does not work if a second filter is not defined

I am working on a job. I want to display a view with a URL similar to / jobs / region / category. I customized my view along the path "/ jobs /% /%". I created 2 context contexts "Content: there is a taxonomy." When I view a view, it works correctly. For example, when I go to http://www.mysite.com/jobs/chicago/medical , it also works, I have a list of medical work in the Chicago area. But if I go to http://www.mysite.com/jobs/chicago , I get "Page not found".

Sets the value "WHEN THE FILTER VALUE IS NOT IN THE URL", but for the second filter, "Show all results for the specified field." I also tried to provide a default value, but nothing works.

I read several topics for similar problems, but have not yet found a solution.

thanks

+4
source share
1 answer

Probably, the path should be just β€œtasks” depending on the structure of your site. Wildcards are handled by the views themselves and allow you to define defualt behavior without the first argument (404, list everything, fill in a strict term identifier, etc.).

+2
source

Source: https://habr.com/ru/post/1391094/


All Articles