Skip to main content
3 of 3
Screenshot moved to bottom of post.

Views Contextual Filters: Using node's URL alias as a conditional filter

I have Drupal content whose nodes have URL aliases;

/node/1 routes to /bar

I also have a View which passes a NID as a contextual filter:

WHEN THE FILTER VALUE IS NOT AVAILABLE:

[selected radio] Provide default value

TYPE

[selected dropdown] Raw value from URL

PATH COMPONENT:

[selected dropdown] 1

[checked] Use path alias

View's Path is set for /foo/%

So:

/node/1 returns node

/bar returns node

/foo/1 returns view

/foo/bar returns a white screen

How do I allow the View to access the node's URL alias as a conditional filter?

Thank you enter image description here